From 897fa9d2312c413ffa1eb5fe66730926a0547cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Sat, 5 Apr 2025 22:17:42 +0300 Subject: [PATCH] Update templates --- gallery/templates/gallery/about.html | 5 ++++ gallery/templates/gallery/album_list.html | 25 +++++++++++++++---- .../templates/gallery/partials/parallax.html | 8 ++++++ gallery/templates/gallery/search.html | 23 +++++++++++++---- 4 files changed, 51 insertions(+), 10 deletions(-) diff --git a/gallery/templates/gallery/about.html b/gallery/templates/gallery/about.html index 54c233a..c882b59 100644 --- a/gallery/templates/gallery/about.html +++ b/gallery/templates/gallery/about.html @@ -5,6 +5,11 @@ {% block title %} Gallery : About{% endblock %} + +{% block parallax %} + {% include "./partials/parallax.html" %} +{% endblock %} + {% block content %} diff --git a/gallery/templates/gallery/album_list.html b/gallery/templates/gallery/album_list.html index f1a2841..63b8d1b 100644 --- a/gallery/templates/gallery/album_list.html +++ b/gallery/templates/gallery/album_list.html @@ -13,21 +13,36 @@ {% block content %}
+ {% for album in album_list %}
-
+
+ + -
-

{{ album }}

-

{{ album.album_date|date:"d.m.Y" }} • {{ album.photos_in_album }} photos

+ + +
+

+ {{ album }} +

+

+ {{ album.album_date|date:"d.m.Y" }} • {{ album.photos_in_album }} photos +

+
{% endfor %} +
{% include "./partials/pagination.html" %} diff --git a/gallery/templates/gallery/partials/parallax.html b/gallery/templates/gallery/partials/parallax.html index ddec3ac..d65bf83 100644 --- a/gallery/templates/gallery/partials/parallax.html +++ b/gallery/templates/gallery/partials/parallax.html @@ -33,4 +33,12 @@ +
+

Gallery

+
+
+

+ Just another wannabe photographer... +

+
\ No newline at end of file diff --git a/gallery/templates/gallery/search.html b/gallery/templates/gallery/search.html index cc68d1d..0f97e69 100644 --- a/gallery/templates/gallery/search.html +++ b/gallery/templates/gallery/search.html @@ -16,16 +16,29 @@ {% if results %} {% for album in results %}
-
+
+ + -
-

{{ album }}

-

{{ album.album_date|date:"d.m.Y" }} • {{ album.photos_in_album }} photos

+ + +
+

+ {{ album }} +

+

+ {{ album.album_date|date:"d.m.Y" }} • {{ album.photos_in_album }} photos +

+
{% endfor %}