From 9232a1a6b5b297bebb33da4aaf3f986f1592eaf0 Mon Sep 17 00:00:00 2001 From: vsg005 Date: Thu, 26 Aug 2021 16:39:41 +0200 Subject: [PATCH] Add original size information for 'Download ZIP' link in album --- sigal/themes/colorbox/templates/album.html | 15 +++++++++++---- sigal/themes/galleria/templates/album_items.html | 16 +++++++++++----- sigal/themes/photoswipe/templates/album.html | 15 +++++++++++---- 3 files changed, 33 insertions(+), 13 deletions(-) diff --git a/sigal/themes/colorbox/templates/album.html b/sigal/themes/colorbox/templates/album.html index a1a7d06..cdd7417 100644 --- a/sigal/themes/colorbox/templates/album.html +++ b/sigal/themes/colorbox/templates/album.html @@ -61,10 +61,17 @@ {% if album.zip %} -
-

Download ZIP

-
+ {% if album.settings['zip_media_format'] == "orig" %} +
+

Download ZIP with original files

+
+ {% else %} +
+

Download ZIP

+
+ {% endif %} {% endif %} {% endblock %} diff --git a/sigal/themes/galleria/templates/album_items.html b/sigal/themes/galleria/templates/album_items.html index ded498c..c4687b2 100644 --- a/sigal/themes/galleria/templates/album_items.html +++ b/sigal/themes/galleria/templates/album_items.html @@ -9,11 +9,17 @@ {% if album.zip %} -
-

Download ZIP -

-
+ {% if album.settings['zip_media_format'] == "orig" %} +
+

Download ZIP with original files

+
+ {% else %} +
+

Download ZIP

+
+ {% endif %} {% endif %} {% if album.description %} diff --git a/sigal/themes/photoswipe/templates/album.html b/sigal/themes/photoswipe/templates/album.html index aefa6c3..874d242 100644 --- a/sigal/themes/photoswipe/templates/album.html +++ b/sigal/themes/photoswipe/templates/album.html @@ -10,10 +10,17 @@ {% block content %} {% if album.zip %} -
-

Download ZIP

-
+ {% if album.settings['zip_media_format'] == "orig" %} +
+

Download ZIP with original files

+
+ {% else %} +
+

Download ZIP

+
+ {% endif %} {% endif %}