diff --git a/gallery/templates/gallery/main.html b/gallery/templates/gallery/main.html index cacd2fb..e72de28 100644 --- a/gallery/templates/gallery/main.html +++ b/gallery/templates/gallery/main.html @@ -83,4 +83,30 @@ + + {% load top_tags %} + {% load image_tags %} + {% random_favorite_photos_landscape 10 as top_landscape_photos %} + + {% if top_landscape_photos %} +
+
+
+ {% for photo in top_landscape_photos %} + {% with photo|photo_image_data as data %} +
+ + {{ photo.album.slug }} + +
+ {% endwith %} + {% endfor %} +
+ + +
+ +
+ {% endif %} + {% endblock %} \ No newline at end of file