From 232ac6193a0f45c39eced95305e446bc449ed95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Sun, 4 May 2025 21:04:23 +0300 Subject: [PATCH] Remove partials parallax --- gallery/templates/gallery/about.html | 5 -- gallery/templates/gallery/album_list.html | 5 -- gallery/templates/gallery/album_search.html | 6 --- gallery/templates/gallery/main.html | 5 -- .../templates/gallery/partials/parallax.html | 45 ----------------- gallery/templates/gallery/photo_detail.html | 2 + gallery/templates/gallery/photo_list.html | 5 -- templates/base.html | 50 +++++++++++++++++-- 8 files changed, 48 insertions(+), 75 deletions(-) delete mode 100644 gallery/templates/gallery/partials/parallax.html diff --git a/gallery/templates/gallery/about.html b/gallery/templates/gallery/about.html index 2134bb9..be5d1ca 100644 --- a/gallery/templates/gallery/about.html +++ b/gallery/templates/gallery/about.html @@ -6,11 +6,6 @@ {% block title %} {% trans "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 389b7aa..c514c43 100644 --- a/gallery/templates/gallery/album_list.html +++ b/gallery/templates/gallery/album_list.html @@ -5,11 +5,6 @@ {% block title %} {% trans "Albums" %} {% endblock %} - -{% block parallax %} - {% include "./partials/parallax.html" %} -{% endblock %} - {% block content %} diff --git a/gallery/templates/gallery/album_search.html b/gallery/templates/gallery/album_search.html index e55fe4b..dacb258 100644 --- a/gallery/templates/gallery/album_search.html +++ b/gallery/templates/gallery/album_search.html @@ -1,16 +1,10 @@ {% extends "base.html" %} {% load static %} {% load i18n %} -{% load image_tags %} {% block title %} {% trans "Search" %} {% endblock %} - -{% block parallax %} - {% include "./partials/parallax.html" %} -{% endblock %} - {% block content %} diff --git a/gallery/templates/gallery/main.html b/gallery/templates/gallery/main.html index 3373150..c8117f5 100644 --- a/gallery/templates/gallery/main.html +++ b/gallery/templates/gallery/main.html @@ -5,11 +5,6 @@ {% block title %} {% trans "Home" %} {% endblock %} - -{% block parallax %} - {% include "./partials/parallax.html" %} -{% endblock %} - {% block content %} diff --git a/gallery/templates/gallery/partials/parallax.html b/gallery/templates/gallery/partials/parallax.html deleted file mode 100644 index 7386b4d..0000000 --- a/gallery/templates/gallery/partials/parallax.html +++ /dev/null @@ -1,45 +0,0 @@ -{% load top_tags %} -{% load static %} -{% load i18n %} - -
- - - - -
-

{% trans "Gallery" %}

-
-
-

{% trans "Just another wannabe photographer..." %}

-
-
\ No newline at end of file diff --git a/gallery/templates/gallery/photo_detail.html b/gallery/templates/gallery/photo_detail.html index fe618a1..c82a41f 100644 --- a/gallery/templates/gallery/photo_detail.html +++ b/gallery/templates/gallery/photo_detail.html @@ -5,6 +5,8 @@ {% block title %} {{ photo.album.name }} : {{ photo.slug }} {% endblock %} + +{% block parallax %}{% endblock %} {% block content %} diff --git a/gallery/templates/gallery/photo_list.html b/gallery/templates/gallery/photo_list.html index fda6163..a899788 100644 --- a/gallery/templates/gallery/photo_list.html +++ b/gallery/templates/gallery/photo_list.html @@ -5,11 +5,6 @@ {% block title %} {% trans "Photostream" %} {% endblock %} - -{% block parallax %} - {% include "./partials/parallax.html" %} -{% endblock %} - {% block content %} diff --git a/templates/base.html b/templates/base.html index 2a45486..196d6eb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,9 +1,9 @@ - +{% load static %} +{% load i18n %} +{% load top_tags %} - {% load static %} - {% load i18n %} @@ -24,7 +24,49 @@
- {% block parallax %}{% endblock %} + {% block parallax %} +
+ +
    + {% random_photos_landscape as top_photos %} + {% if top_photos %} + {% for photo in top_photos %} +
  • + Foto from {{ photo.album.name }} album +
  • + {% endfor %} + {% else %} +
  • + Placeholder +
  • + {% endif %} +
+ + +
+

{% trans "Gallery" %}

+
+
+

{% trans "Just another wannabe photographer..." %}

+
+
+ {% endblock %} {% block navbar %}