--- a/src/pyams_file/widget/templates/file-display.pt Thu Dec 20 18:46:31 2018 +0100
+++ b/src/pyams_file/widget/templates/file-display.pt Fri Dec 21 16:44:55 2018 +0100
@@ -16,8 +16,9 @@
–
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href tales:absolute_url(value)"
- tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
+ tal:define="href tales:absolute_url(value);
+ timestamp tales:timestamp(value)"
+ tal:attributes="href string:${href}?download=1&_=${timestamp}"
i18n:translate="">Download</a>
</div>
</div>
--- a/src/pyams_file/widget/templates/file-input.pt Thu Dec 20 18:46:31 2018 +0100
+++ b/src/pyams_file/widget/templates/file-input.pt Fri Dec 21 16:44:55 2018 +0100
@@ -40,8 +40,9 @@
content="structure viewlet/render">
</tal:loop>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href tales:absolute_url(value)"
- tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
+ tal:define="href tales:absolute_url(value);
+ timestamp tales:timestamp(value)"
+ tal:attributes="href string:${href}?download=1&_=${timestamp}"
i18n:translate="">
Download
</a>
--- a/src/pyams_file/widget/templates/media-display.pt Thu Dec 20 18:46:31 2018 +0100
+++ b/src/pyams_file/widget/templates/media-display.pt Fri Dec 21 16:44:55 2018 +0100
@@ -64,7 +64,7 @@
–
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href tales:absolute_url(value)
+ tal:define="href tales:absolute_url(value);
timestamp tales:timestamp(value)"
tal:attributes="href string:${href}?download=1&_=${timestamp}"
i18n:translate="">Download</a>