--- a/src/pyams_media/zmi/templates/audio-preview.pt Mon Jul 09 11:43:41 2018 +0200
+++ b/src/pyams_media/zmi/templates/audio-preview.pt Mon Jul 09 13:42:20 2018 +0200
@@ -2,18 +2,18 @@
data-ams-plugins="flowplayer"
data-ams-plugin-flowplayer-async="false"
data-ams-callback="PyAMS_media.initPlayer"
- tal:attributes="data-ams-plugin-flowplayer-src extension:resource_path('pyams_media.skin:flowplayer');
- data-ams-plugin-flowplayer-css extension:resource_path('pyams_media.skin:functional_css');
- data-ams-callback-source extension:resource_path('pyams_media.skin:pyams_media');">
+ tal:attributes="data-ams-plugin-flowplayer-src tales:resource_path('pyams_media.skin:flowplayer');
+ data-ams-plugin-flowplayer-css tales:resource_path('pyams_media.skin:functional_css');
+ data-ams-callback-source tales:resource_path('pyams_media.skin:pyams_media');">
<video
- tal:define="href extension:absolute_url(context);
- conversions extension:conversions(context);">
+ tal:define="href tales:absolute_url(context);
+ conversions tales:conversions(context);">
<tal:loop repeat="conversion conversions.get_conversions(order=('audio/ogg', 'audio/mpeg', 'audio/wav'))">
<source type="audio/ogg"
- tal:define="audio_type extension:audio_type(conversion);"
+ tal:define="audio_type tales:audio_type(conversion);"
tal:condition="audio_type"
tal:attributes="type audio_type;
- src extension:absolute_url(conversion);" />
+ src tales:absolute_url(conversion);" />
</tal:loop>
</video>
</div>
--- a/src/pyams_media/zmi/templates/video-conversions.pt Mon Jul 09 11:43:41 2018 +0200
+++ b/src/pyams_media/zmi/templates/video-conversions.pt Mon Jul 09 13:42:20 2018 +0200
@@ -21,7 +21,7 @@
class="text-align-center">
<tal:if condition="converted">
<a tal:define="conversion view.get_conversion(converter, None);
- url extension:absolute_url(conversion);"
+ url tales:absolute_url(conversion);"
tal:attributes="href string:${url}?download=1">
<span class="txt-color-green" i18n:translate="">OK</span>
</a>
@@ -38,7 +38,7 @@
<tal:if condition="maybe">
<tal:if condition="converted">
<a tal:define="conversion view.get_conversion(converter, format[0]);
- url extension:absolute_url(conversion);"
+ url tales:absolute_url(conversion);"
tal:attributes="href string:${url}?download=1">
<span class="txt-color-green" i18n:translate="">OK</span>
</a>
--- a/src/pyams_media/zmi/templates/video-preview.pt Mon Jul 09 11:43:41 2018 +0200
+++ b/src/pyams_media/zmi/templates/video-preview.pt Mon Jul 09 13:42:20 2018 +0200
@@ -2,22 +2,22 @@
data-ams-plugins="flowplayer"
data-ams-plugin-flowplayer-async="false"
data-ams-callback="PyAMS_media.initPlayer"
- tal:attributes="data-ams-plugin-flowplayer-src extension:resource_path('pyams_media.skin:flowplayer');
- data-ams-plugin-flowplayer-css extension:resource_path('pyams_media.skin:functional_css');
- data-ams-callback-source extension:resource_path('pyams_media.skin:pyams_media');">
+ tal:attributes="data-ams-plugin-flowplayer-src tales:resource_path('pyams_media.skin:flowplayer');
+ data-ams-plugin-flowplayer-css tales:resource_path('pyams_media.skin:functional_css');
+ data-ams-callback-source tales:resource_path('pyams_media.skin:pyams_media');">
<video
- tal:define="href extension:absolute_url(context);
- thumbnails extension:thumbnails(context);
- conversions extension:conversions(context);
+ tal:define="href tales:absolute_url(context);
+ thumbnails tales:thumbnails(context);
+ conversions tales:conversions(context);
size thumbnails.get_image_size();"
tal:attributes="poster string:${href}/++thumb++${size[0]}x${size[1]}.png?_=${view.timestamp}">
<tal:loop repeat="conversion conversions.get_conversions(order=('video/webm','video/mp4','video/x-flv'))">
<source type="video/mp4"
tal:define="media_width conversions.get_conversion_width(conversion.__name__);
- video_type extension:video_type(conversion);"
+ video_type tales:video_type(conversion);"
tal:condition="video_type"
tal:attributes="type video_type;
- src extension:absolute_url(conversion);
+ src tales:absolute_url(conversion);
media 'all and (max-width: {0}px)'.format(media_width) if media_width else None;" />
</tal:loop>
</video>
--- a/src/pyams_media/zmi/templates/video-thumbnail.pt Mon Jul 09 11:43:41 2018 +0200
+++ b/src/pyams_media/zmi/templates/video-thumbnail.pt Mon Jul 09 13:42:20 2018 +0200
@@ -2,22 +2,22 @@
data-ams-plugins="flowplayer"
data-ams-plugin-flowplayer-async="false"
data-ams-callback="PyAMS_media.initPlayer"
- tal:attributes="data-ams-plugin-flowplayer-src extension:resource_path('pyams_media.skin:flowplayer');
- data-ams-plugin-flowplayer-css extension:resource_path('pyams_media.skin:functional_css');
- data-ams-callback-source extension:resource_path('pyams_media.skin:pyams_media');"
+ tal:attributes="data-ams-plugin-flowplayer-src tales:resource_path('pyams_media.skin:flowplayer');
+ data-ams-plugin-flowplayer-css tales:resource_path('pyams_media.skin:functional_css');
+ data-ams-callback-source tales:resource_path('pyams_media.skin:pyams_media');"
data-ams-flowplayer-events='{"pause": "PyAMS_media.getPlayerTime", "seek": "PyAMS_media.getPlayerTime"}'>
<video
- tal:define="href extension:absolute_url(context);
- thumbnails extension:thumbnails(context);
- conversions extension:conversions(context);
+ tal:define="href tales:absolute_url(context);
+ thumbnails tales:thumbnails(context);
+ conversions tales:conversions(context);
size thumbnails.get_image_size();"
tal:attributes="poster string:${href}/++thumb++${size[0]}x${size[1]}.png?_=${view.timestamp}">
<tal:loop repeat="conversion conversions.get_conversions(order=('video/webm','video/mp4','video/x-flv'))">
- <tal:if define="video_type extension:video_type(conversion);"
+ <tal:if define="video_type tales:video_type(conversion);"
condition="video_type">
<source type="video/mp4"
tal:define="media_width conversions.get_conversion_width(conversion.__name__);
- media_src extension:absolute_url(conversion)"
+ media_src tales:absolute_url(conversion)"
tal:attributes="type video_type;
src media_src.replace('+', '%2b');
media 'all and (max-width: {0}px)'.format(media_width) if media_width else None;" />