Remove Breadcrumb

This commit is contained in:
Nyymix 2025-01-20 21:18:55 +02:00
parent 9264467bd0
commit 684982eca5
5 changed files with 59 additions and 64 deletions

View file

@ -3,19 +3,12 @@
<!-- Title -->
{% block title %} Gallery : Photo {% endblock %}
<!-- Breadcrumb -->
{% block breadcrumb %}
<li><a href="{% url 'gallery:albums_url' %}">Albums</a></li>
<li><a href="{{ photo.album.get_absolute_url }}">{{ photo.album.name }}</a></li>
<li>{{ photo.slug }}</li>
{% endblock %}
<!-- Content -->
{% block content %}
<div uk-grid>
<div class="uk-width-1-1 uk-width-3-4@m">
<div uk-lightbox>
<a href="{{ photo.photo_bg.url }}" data-alt="{{ photo.slug }}">
@ -30,25 +23,56 @@
(max-width: 960px) 720px,
1920px"
alt="{{ photo.slug }}"
style="max-width: 100%; max-height: 100vh; object-fit: contain;" />
style="max-width: 100%; max-height: 90vh; object-fit: contain;" />
</a>
</div>
</div>
<div class="uk-margin-top uk-width-1-4@m uk-visible@m">
{% if prev %}
<a href="{% url 'gallery:photo_url' photo.album.slug prev.slug %}" uk-slidenav-previous>&laquo; Prev</a>
{% endif %}
{% if next %}
<a href="{% url 'gallery:photo_url' photo.album.slug next.slug %}" uk-slidenav-next>Next &raquo;</a>
{% endif %}
<p> Views: {{ photo.views }}</p>
<p> Likes: {{ photo.likes }}</p>
<p> Taken: {{ photo.taken_at }} </p>
<p> Favorite: {{ photo.favorite }}</p>
<a href="{{ photo.photo.url }}">Download {{ photo.width }}x{{ photo.height }}</a>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Album name</div>
<div><a href="{{ photo.album.get_absolute_url }}">{{ photo.album.name }}</a></div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Photo id</div>
<div uk-lightbox>
<a href="{{ photo.photo_bg.url }}">{{ photo.slug }}</a>
</div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Photo Taken</div>
<div>{{ photo.taken_at|date:"d.m.Y H:i" }}</div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Views</div>
<div>{{ photo.views }}</div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Likes</div>
<div>{{ photo.likes }}</div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Download</div>
<div><a href="{{ photo.photo.url }}">{{ photo.width }}x{{ photo.height }}</a></div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>
{% if prev %}
<a href="{% url 'gallery:photo_url' photo.album.slug prev.slug %}">&laquo; Prev</a>
{% endif %}
</div>
<div>
{% if next %}
<a href="{% url 'gallery:photo_url' photo.album.slug next.slug %}">Next &raquo;</a>
{% endif %}
</div>
</div>
<form action="{% url 'gallery:photo_url' photo.album.slug photo.slug %}" method="POST" class="uk-form">
{% csrf_token %}
<button type="submit" name="like" value="true" class="uk-button uk-button-primary">