Commits

Anonymous committed 625f4d1

modified galleries list template, now displays the number of photos for each gallery

Comments (0)

Files changed (2)

photos/public/css/style.css

     margin-right: auto;
 }
 
-.photos_gallery_title, .photos_photo_title {
+.photos_gallery_info, .photos_photo_title {
     text-align: center;
     font-size: 1.4em;
     font-style: italic;

photos/templates/albums_partial.html

             <img py:if="not gallery.photos" src="${tg.url('/_pluggable/photos/images/gallery_default.png')}"/>
             <img py:if="gallery.photos" src="${gallery.photos[0].image.thumb_url}"/>
         </div>
-        <div class="photos_gallery_title">
-            ${gallery.name}
+        <div class="photos_gallery_info">
+            <span class="photos_gallery_title">${gallery.name}</span>
+            <span class="photos_gallery_photos_number">${len(gallery.photos)}</span>
         </div>
     </div>
 </a>