From 1380bc99a75543b0dbaa03e4b03ceeed211395d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Tue, 29 Apr 2025 21:57:47 +0300 Subject: [PATCH] Add top landscape photos --- gallery/templates/gallery/main.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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