diff montage/templates/background.html @ 30:5a3945882d04

improvements in background.html template
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 11 Jan 2012 16:28:16 -0800
parents ee74cf1e444b
children
line wrap: on
line diff
--- a/montage/templates/background.html	Thu Dec 29 23:20:12 2011 -0800
+++ b/montage/templates/background.html	Wed Jan 11 16:28:16 2012 -0800
@@ -7,10 +7,12 @@
   <head py:with="background = request.GET.get('image', files[0]['link'])">
     <xi:include href="head.html"/>
     <style type="text/css">
-      body { background-image: url('${background}'); 
-      background-repeat:no-repeat;
-      background-position: right;
-      background-attachment: fixed;
+      body {
+           background-image: url('${background}');
+           background-repeat:no-repeat;
+           background-position: right;
+           background-attachment: fixed;
+           background-size: 100% 100%;
       }
     </style>
   </head>
@@ -20,7 +22,8 @@
     <div class="strip">
     <py:for each="index, image in enumerate(files)">
       <div class="image">
-        <a href="${'?image=' + image['link']}">
+        <a name="${image['name']}"></a>
+        <a href="${'?image=' + image['name']}#${image['name']}">
           <img src="${image['path']}" width="${width or None}" height="${height or None}"/>
         </a>
         <br/>