Added against empty video file
authorThierry Florac <thierry.florac@onf.fr>
Thu, 28 Jun 2018 13:07:46 +0200
changeset 63 a678bf9a40e8
parent 62 06576e062236
child 64 b7b9d3181cef
Added against empty video file
src/pyams_default_theme/component/paragraph/templates/video-default.pt
--- a/src/pyams_default_theme/component/paragraph/templates/video-default.pt	Thu Jun 28 08:48:26 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/video-default.pt	Thu Jun 28 13:07:46 2018 +0200
@@ -6,6 +6,7 @@
 	 data-ams-plugins="flowplayer"
 	 data-ams-plugin-flowplayer-async="false"
 	 data-ams-callback="PyAMS_media.initPlayer"
+	 tal:condition="view.data"
 	 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');">