# HG changeset patch # User Thierry Florac # Date 1535360737 -7200 # Node ID 2965f72df55ba8605090484bffc4e65506727069 # Parent 57ef05b46604ee40e6d4c87401b02d41f5326b62 Updated media widget templates diff -r 57ef05b46604 -r 2965f72df55b src/pyams_file/widget/templates/media-display.pt --- a/src/pyams_file/widget/templates/media-display.pt Mon Aug 27 11:05:02 2018 +0200 +++ b/src/pyams_file/widget/templates/media-display.pt Mon Aug 27 11:05:37 2018 +0200 @@ -2,20 +2,38 @@
- - - - + +
+ Thumbnail +
+
+ Current value: + +  –  + +
+ Download +
+
+ + + +
Current value: @@ -25,22 +43,30 @@
- Download - + tal:define="href tales:absolute_url(value); + timestamp tales:timestamp(value);" + tal:attributes="href string:${href}?download=1&_=${timestamp}" + i18n:translate="">Download
+
+ + + +
Current value:  –  Download
diff -r 57ef05b46604 -r 2965f72df55b src/pyams_file/widget/templates/media-input.pt --- a/src/pyams_file/widget/templates/media-input.pt Mon Aug 27 11:05:02 2018 +0200 +++ b/src/pyams_file/widget/templates/media-input.pt Mon Aug 27 11:05:37 2018 +0200 @@ -39,9 +39,7 @@ tal:define="href tales:absolute_url(value); timestamp tales:timestamp(value);" tal:attributes="href string:${href}?download=1&_=${timestamp}" - i18n:translate=""> - Download - + i18n:translate="">Download
@@ -78,9 +76,7 @@ tal:define="href tales:absolute_url(value); timestamp tales:timestamp(value)" tal:attributes="href string:${href}?download=1&_=${timestamp}" - i18n:translate=""> - Download - + i18n:translate="">Download @@ -106,11 +102,10 @@ content="structure viewlet/render"> - Download - + tal:define="href tales:absolute_url(value); + timestamp tales:timestamp(value)" + tal:attributes="href string:${href}?download=1&_=${timestamp}" + i18n:translate="">Download