--- a/src/pyams_file/widget/templates/file-display.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/widget/templates/file-display.pt Mon Jul 09 13:40:03 2018 +0200
@@ -16,7 +16,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 extension:absolute_url(value)"
+ tal:define="href tales:absolute_url(value)"
tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
i18n:translate="">Download</a>
</div>
--- a/src/pyams_file/widget/templates/file-input.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/widget/templates/file-input.pt Mon Jul 09 13:40:03 2018 +0200
@@ -34,13 +34,13 @@
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<br />
<div class="btn-group dropup"
- tal:define="actions extension:context_actions(value)"
+ tal:define="actions tales:context_actions(value)"
tal:omit-tag="not:actions">
<tal:loop repeat="viewlet actions/viewlets"
content="structure viewlet/render">
</tal:loop>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href extension:absolute_url(value)"
+ tal:define="href tales:absolute_url(value)"
tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
i18n:translate="">
Download
--- a/src/pyams_file/widget/templates/media-display.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/widget/templates/media-display.pt Mon Jul 09 13:40:03 2018 +0200
@@ -6,13 +6,13 @@
data-ams-fancybox-type="image"
data-ams-hint-gravity="e"
data-ams-hint-offset="5"
- tal:define="thumbnails extension:thumbnails(value);
+ tal:define="thumbnails tales:thumbnails(value);
target python:thumbnails.get_thumbnail('800x600', 'jpeg');"
- tal:attributes="href extension:absolute_url(target);"
+ tal:attributes="href tales:absolute_url(target);"
title="Zoom image" i18n:attributes="title">
<img class="thumbnail" title="" src="" alt=""
tal:define="thumbnail python:thumbnails.get_thumbnail('128x128');"
- tal:attributes="src string:${extension:absolute_url(thumbnail)}?_=${extension:timestamp(thumbnail)};
+ tal:attributes="src string:${tales:absolute_url(thumbnail)}?_=${tales:timestamp(thumbnail)};
title i18n:value.title;" />
</a>
<tal:if condition="python:value.content_type.startswith('image/')">
@@ -25,7 +25,7 @@
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<br />
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href extension:absolute_url(value)"
+ tal:define="href tales:absolute_url(value)"
tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
i18n:translate="">
Download
@@ -39,7 +39,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 extension:absolute_url(value)"
+ tal:define="href tales:absolute_url(value)"
tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
i18n:translate="">Download</a>
</div>
--- a/src/pyams_file/widget/templates/media-input.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/widget/templates/media-input.pt Mon Jul 09 13:40:03 2018 +0200
@@ -20,7 +20,7 @@
</label>
</div>
<tal:if condition="python:value.content_type.startswith('image/svg')">
- <div tal:content="structure extension:thumbnail(value, 128, 'auto', 'pull-left margin-5 margin-right-10')">
+ <div tal:content="structure tales:thumbnail(value, 128, 'auto', 'pull-left margin-5 margin-right-10')">
Thumbnail
</div>
<div class="margin-top-5">
@@ -30,14 +30,14 @@
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<br />
<div class="btn-group dropup"
- tal:define="actions extension:context_actions(value)"
+ tal:define="actions tales:context_actions(value)"
tal:omit-tag="not:actions">
<tal:loop repeat="viewlet actions/viewlets"
content="structure viewlet/render">
</tal:loop>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href extension:absolute_url(value);
- timestamp extension:timestamp(value);"
+ tal:define="href tales:absolute_url(value);
+ timestamp tales:timestamp(value);"
tal:attributes="href string:${href}?download=1&_=${timestamp}"
i18n:translate="">
Download
@@ -52,11 +52,11 @@
data-ams-hint-offset="5"
tal:define="thumbnail python:view.get_thumbnail('128x128');
target python:view.get_thumbnail('800x600');"
- tal:attributes="href extension:absolute_url(target);"
+ tal:attributes="href tales:absolute_url(target);"
title="Zoom image" i18n:attributes="title">
<img class="thumbnail" title="" src="" alt=""
- tal:define="url extension:absolute_url(thumbnail);"
- tal:attributes="id string:thumbnail_${extension:cache_key(value)};
+ tal:define="url tales:absolute_url(thumbnail);"
+ tal:attributes="id string:thumbnail_${tales:cache_key(value)};
src string:${url};
title i18n:value.title;" />
</a>
@@ -69,14 +69,14 @@
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<br />
<div class="btn-group dropup"
- tal:define="actions extension:context_actions(value)"
+ tal:define="actions tales:context_actions(value)"
tal:omit-tag="not:actions">
<tal:loop repeat="viewlet actions/viewlets"
content="structure viewlet/render">
</tal:loop>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href extension:absolute_url(value);
- timestamp extension:timestamp(value)"
+ tal:define="href tales:absolute_url(value);
+ timestamp tales:timestamp(value)"
tal:attributes="href string:${href}?download=1&_=${timestamp}"
i18n:translate="">
Download
@@ -100,13 +100,13 @@
<span tal:content="python:view.get_human_size(value.get_size())"></span>
<br />
<div class="btn-group dropup"
- tal:define="actions extension:context_actions(value)"
+ tal:define="actions tales:context_actions(value)"
tal:omit-tag="not:actions">
<tal:loop repeat="viewlet actions/viewlets"
content="structure viewlet/render">
</tal:loop>
<a class="btn btn-xs btn-primary" target="download_window"
- tal:define="href extension:absolute_url(value)"
+ tal:define="href tales:absolute_url(value)"
tal:attributes="href string:${href}?download=1&_=${view/timestamp}"
i18n:translate="">
Download
--- a/src/pyams_file/zmi/templates/image-crop.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/zmi/templates/image-crop.pt Mon Jul 09 13:40:03 2018 +0200
@@ -1,4 +1,4 @@
-<tal:var define="thumbnails extension:thumbnails(context);
+<tal:var define="thumbnails tales:thumbnails(context);
image thumbnails.get_thumbnail('800x480');
size context.get_image_size();
thumb_size image.get_image_size();">
@@ -9,8 +9,8 @@
<img class="imgareaselect"
data-ams-imgareaselect-parent=".modal-dialog"
data-ams-imgareaselect-target-field="selection."
- tal:define="url extension:absolute_url(image);
- timestamp extension:timestamp(image);"
+ tal:define="url tales:absolute_url(image);
+ timestamp tales:timestamp(image);"
tal:attributes="src string:${url}?_=${timestamp};
width thumb_size[0];
height thumb_size[1];
--- a/src/pyams_file/zmi/templates/image-selection.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/zmi/templates/image-selection.pt Mon Jul 09 13:40:03 2018 +0200
@@ -1,4 +1,4 @@
-<tal:var define="thumbnails extension:thumbnails(context);
+<tal:var define="thumbnails tales:thumbnails(context);
image thumbnails.get_thumbnail('800x480');
size context.get_image_size();
thumb_size image.get_image_size();
@@ -10,8 +10,8 @@
<img class="imgareaselect"
data-ams-imgareaselect-parent=".modal-dialog"
data-ams-imgareaselect-target-field="selection."
- tal:define="url extension:absolute_url(image);
- timestamp extension:timestamp(image);"
+ tal:define="url tales:absolute_url(image);
+ timestamp tales:timestamp(image);"
tal:attributes="src string:${url}?_=${timestamp};
width thumb_size[0];
height thumb_size[1];
--- a/src/pyams_file/zmi/templates/image-thumbnails.pt Thu Jul 05 18:08:55 2018 +0200
+++ b/src/pyams_file/zmi/templates/image-thumbnails.pt Mon Jul 09 13:40:03 2018 +0200
@@ -1,4 +1,4 @@
-<tal:loop define="thumbnails extension:thumbnails(context)"
+<tal:loop define="thumbnails tales:thumbnails(context)"
repeat="thumbnailer view.get_thumbnails().items()" i18n:domain="pyams_file">
<tal:var define="section thumbnailer[0];
adapters thumbnailer[1];">
@@ -10,11 +10,11 @@
tal:condition="adapter['label'] != section"
tal:content="adapter['label']">Label</p>
<div class="bordered">
- <img tal:define="base extension:absolute_url(context);
+ <img tal:define="base tales:absolute_url(context);
name adapter['name'];
thname '{0}:'.format(name) if name else '';
thumbnail adapter['thumbnail'];"
- tal:attributes="src string:${base}/++thumb++${thname}200x128.jpeg?_=${extension:timestamp(thumbnail)}" />
+ tal:attributes="src string:${base}/++thumb++${thname}200x128.jpeg?_=${tales:timestamp(thumbnail)}" />
</div>
</div>
</tal:loop>