download link for everyone

This commit is contained in:
j 2025-04-27 11:34:12 +01:00
parent 2c4d108715
commit a6e76776cc
2 changed files with 8 additions and 2 deletions
content/templates

View file

@ -5,7 +5,7 @@
<li><a href="{{ gallery.get_absolute_url }}#{{forloop.counter}}"><img src="{{ photo.get_thumbnail_url }}"
class="photo"
data-caption="{{ photo.caption_html }}"
{% if request.user.is_staff %}data-orig="{{ photo.image.url }}"{% endif %}
data-orig="{{ photo.image.url }}"
{% if request.user.is_staff %}data-edit="{{ photo.edit_url }}"{% endif %}
></a></li>
{% endfor %}

View file

@ -33,7 +33,13 @@
{% for photo in gallery.public %}
<div style="float: left; padding: 4px">
<a href="{{ gallery.get_absolute_url }}#{{forloop.counter}}">
<img src="{{ photo.get_thumbnail_url }}" class="thumbnail photo" alt="{{ photo.title }}" data-caption="{{ photo.caption_html }}"{% if request.user.is_staff %} data-orig="{{ photo.image.url }}"{% endif %}>
<img
src="{{ photo.get_thumbnail_url }}"
class="thumbnail photo"
alt="{{ photo.title }}"
data-caption="{{ photo.caption_html }}"
data-orig="{{ photo.image.url }}"
>
</a>
</div>
{% endfor %}