download link for everyone
This commit is contained in:
parent
2c4d108715
commit
a6e76776cc
2 changed files with 8 additions and 2 deletions
content/templates
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue