Browse Source

Add common template for zip download

pull/450/head
Simon Conseil 4 years ago
parent
commit
c73da43b5d
  1. 15
      sigal/themes/colorbox/templates/album.html
  2. 13
      sigal/themes/default/templates/download_zip.html
  3. 14
      sigal/themes/galleria/templates/album_items.html
  4. 15
      sigal/themes/photoswipe/templates/album.html

15
sigal/themes/colorbox/templates/album.html

@ -61,20 +61,7 @@
{% endfor %}
</div>
{% if album.zip %}
{% if album.settings['zip_media_format'] == "orig" %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images original size">Download ZIP with original files</a></p>
</div>
{% else %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images">Download ZIP</a></p>
</div>
{% endif %}
{% endif %}
{% include 'download_zip.html' %}
{% endblock %}
{% block footer %}

13
sigal/themes/default/templates/download_zip.html

@ -0,0 +1,13 @@
{% if album.zip %}
{% if album.settings['zip_media_format'] == "orig" %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images original size">Download ZIP with original files</a></p>
</div>
{% else %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images">Download ZIP</a></p>
</div>
{% endif %}
{% endif %}

14
sigal/themes/galleria/templates/album_items.html

@ -5,19 +5,7 @@
{% include 'map.html' %}
<div id="gallery"></div>
{% if album.zip %}
{% if album.settings['zip_media_format'] == "orig" %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images original size">Download ZIP with original files</a></p>
</div>
{% else %}
<div id="additionnal-infos" class="row">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images">Download ZIP</a></p>
</div>
{% endif %}
{% endif %}
{% include 'download_zip.html' %}
{% if album.description %}
<div id="description">

15
sigal/themes/photoswipe/templates/album.html

@ -9,20 +9,7 @@
{% endblock extra_head %}
{% block content %}
{% if album.zip %}
{% if album.settings['zip_media_format'] == "orig" %}
<div class="additionnal-infos">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images original size">Download ZIP with original files</a></p>
</div>
{% else %}
<div class="additionnal-infos">
<p><a href="{{ album.zip }}"
title="Download a zip archive with all images">Download ZIP</a></p>
</div>
{% endif %}
{% endif %}
{% include 'download_zip.html' %}
{% include 'map.html' %}
<div class="gallery" itemscope itemtype="http://schema.org/ImageGallery">
{% for media in album.medias %}

Loading…
Cancel
Save