From 3f5efe8f814b68af4f110541b5e2a1ca57debcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Sun, 2 Mar 2025 23:46:40 +0200 Subject: [PATCH] Remove main page, add parallax --- gallery/templates/gallery/album_list.html | 4 +++ gallery/templates/gallery/main.html | 27 ------------------- .../templates/gallery/partials/parallax.html | 21 +++++++++++++++ gallery/templates/gallery/photo_list.html | 12 ++++++--- gallery/templatetags/top_tags.py | 16 ++++++++++- gallery/urls.py | 2 +- gallery/views.py | 14 +++------- 7 files changed, 53 insertions(+), 43 deletions(-) delete mode 100644 gallery/templates/gallery/main.html create mode 100644 gallery/templates/gallery/partials/parallax.html diff --git a/gallery/templates/gallery/album_list.html b/gallery/templates/gallery/album_list.html index 2d1b405..f1a2841 100644 --- a/gallery/templates/gallery/album_list.html +++ b/gallery/templates/gallery/album_list.html @@ -4,6 +4,10 @@ {% block title %} Gallery : Albums {% endblock %} + +{% block parallax %} + {% include "./partials/parallax.html" %} +{% endblock %} {% block content %} diff --git a/gallery/templates/gallery/main.html b/gallery/templates/gallery/main.html deleted file mode 100644 index 6da4000..0000000 --- a/gallery/templates/gallery/main.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "base_dark.html" %} -{% load top_tags %} - - -{% block title %} Gallery {% endblock %} - - -{% block content %} - Hello World! - - - - - -

Istunto vanhenee: {{ session_expiry|date:"d.m.Y H:i" }}

- -{% endblock %} \ No newline at end of file diff --git a/gallery/templates/gallery/partials/parallax.html b/gallery/templates/gallery/partials/parallax.html new file mode 100644 index 0000000..efeb491 --- /dev/null +++ b/gallery/templates/gallery/partials/parallax.html @@ -0,0 +1,21 @@ +{% load top_tags %} +{% load static %} + +
+ + + +
\ No newline at end of file diff --git a/gallery/templates/gallery/photo_list.html b/gallery/templates/gallery/photo_list.html index 44ef8b1..8882277 100644 --- a/gallery/templates/gallery/photo_list.html +++ b/gallery/templates/gallery/photo_list.html @@ -1,16 +1,22 @@ {% extends "base_dark.html" %} - +{% load static %} {% block title %} Gallery : Photostream {% endblock %} + +{% block parallax %} + {% include "./partials/parallax.html" %} +{% endblock %} + {% block content %} {% load link_tags %} -