From 684982eca542b2e6fe0add8381060e4dec4e2c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Mon, 20 Jan 2025 21:18:55 +0200 Subject: [PATCH] Remove Breadcrumb --- gallery/templates/gallery/album_detail.html | 34 ++++------- gallery/templates/gallery/album_list.html | 4 -- gallery/templates/gallery/photo_detail.html | 68 ++++++++++++++------- gallery/templates/gallery/photo_list.html | 5 -- templates/base.html | 12 +--- 5 files changed, 59 insertions(+), 64 deletions(-) diff --git a/gallery/templates/gallery/album_detail.html b/gallery/templates/gallery/album_detail.html index cf40a25..74126b9 100644 --- a/gallery/templates/gallery/album_detail.html +++ b/gallery/templates/gallery/album_detail.html @@ -5,34 +5,26 @@ {% block title %} Gallery : Albums : {{ album.name }} {% endblock %} - -{% block breadcrumb %} -
  • Albums
  • -
  • {{ album.name }}
  • -{% endblock %} - - + {% block parallax %} -{% if album.cover %} -
    -{% else %} -
    -{% endif %} -
    -
    -

    {{ album.name }}

    -

    {{ album.location }}

    -

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

    + {% if album.cover %} +
    + {% else %} +
    + {% endif %} +
    +
    +

    {{ album.name }}

    +

    {{ album.location }}

    +

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

    +
    -
    {% endblock %} {% block content %} -

    {{ album.name }}

    -
    {% for photo in photos %} @@ -52,8 +44,6 @@ {% endfor %}
    - - {% include "./_pagination.html" %} {% endblock %} \ No newline at end of file diff --git a/gallery/templates/gallery/album_list.html b/gallery/templates/gallery/album_list.html index 4439a70..f900472 100644 --- a/gallery/templates/gallery/album_list.html +++ b/gallery/templates/gallery/album_list.html @@ -4,10 +4,6 @@ {% block title %} Gallery : Albums {% endblock %} - -{% block breadcrumb %} -
  • Albums
  • -{% endblock %} {% block content %} diff --git a/gallery/templates/gallery/photo_detail.html b/gallery/templates/gallery/photo_detail.html index d91d27a..f8cf95d 100644 --- a/gallery/templates/gallery/photo_detail.html +++ b/gallery/templates/gallery/photo_detail.html @@ -3,19 +3,12 @@ {% block title %} Gallery : Photo {% endblock %} - -{% block breadcrumb %} -
  • Albums
  • -
  • {{ photo.album.name }}
  • -
  • {{ photo.slug }}
  • -{% endblock %} - {% block content %}
    - +
    - {% if prev %} - « Prev - {% endif %} - {% if next %} - Next » - {% endif %} -

    Views: {{ photo.views }}

    -

    Likes: {{ photo.likes }}

    -

    Taken: {{ photo.taken_at }}

    -

    Favorite: {{ photo.favorite }}

    - - Download {{ photo.width }}x{{ photo.height }} - + +
    +
    Album name
    + +
    +
    +
    Photo id
    + +
    +
    +
    Photo Taken
    +
    {{ photo.taken_at|date:"d.m.Y H:i" }}
    +
    +
    +
    Views
    +
    {{ photo.views }}
    +
    +
    +
    Likes
    +
    {{ photo.likes }}
    +
    + + +
    +
    + {% if prev %} + « Prev + {% endif %} +
    +
    + {% if next %} + Next » + {% endif %} +
    +
    + + + +
    {% csrf_token %}