Anonymous avatar Anonymous committed 7327f2c

gallery 添加查看原图

Comments (0)

Files changed (2)

 class MainHandler(AdminHandler):
     def get(self):
+        self.template_value['a']=[]
 class AlbumIndexHandler(AdminHandler):


             <div class="caption">
                 <div class="download">
-                    <a href="{{img.download_url}}">下载</a>
+                 <a href="{{img.copyurl}}" class="copy_url" target="_blank">查看原图</a>   |<a href="{{img.download_url}}">下载</a>
-                <div class="image-title">{{img.des}}</div>
+                <div class="image-title">{{img.des}} </div>
                 <div class="image-desc">
                 	<p>{{img.width}}*{{img.height}}({{img.size|filesizeformat}}) at {{img.created|humdate}} </p>
 <div style="clear: both;"></div>
+<script type="text/javascript" src="/static/ZeroClipboard.js"></script>
 <script type="text/javascript">
     jQuery(document).ready(function($) {
         // We only want these styles applied when javascript is enabled
         $('div.navigation').css({'width' : '300px', 'float' : 'left'});
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.