# HG changeset patch # User Thierry Florac # Date 1522768239 -7200 # Node ID f282127bc4206d742a03a5605827483e6c1ff770 # Parent 47e890a95d41c16351ca7a810769ca28429c7172 Don't display download button when gallery is empty diff -r 47e890a95d41 -r f282127bc420 src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt --- a/src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt Tue Apr 03 17:00:58 2018 +0200 +++ b/src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt Tue Apr 03 17:10:39 2018 +0200 @@ -1,5 +1,6 @@
@@ -9,7 +10,8 @@ tal:attributes="data-ams-switcher-state 'open' if context.values() else None"> Gallery medias -
+
Download medias @@ -27,7 +29,7 @@ data-ams-fancybox-loop="false" data-ams-fancybox-elements="a.fancyimg" data-ams-fancybox-after-load="PyAMS_content.galleries.afterFancyboxLoad"> -