Added author in videos renderers
authorThierry Florac <thierry.florac@onf.fr>
Mon, 10 Dec 2018 15:34:39 +0100
changeset 285 f7a32a10787c
parent 284 aa70cb77cf43
child 286 351dabbee2f7
Added author in videos renderers
src/pyams_default_theme/component/paragraph/templates/video-default.pt
src/pyams_default_theme/component/video/templates/external-video-default.pt
--- a/src/pyams_default_theme/component/paragraph/templates/video-default.pt	Mon Dec 10 14:45:33 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/video-default.pt	Mon Dec 10 15:34:39 2018 +0100
@@ -21,4 +21,5 @@
 									media 'all and (max-width: {0}px)'.format(media_width) if media_width else None;" />
 		</tal:loop>
 	</video>
+	<div class="author">${view.author}</div>
 </section>
--- a/src/pyams_default_theme/component/video/templates/external-video-default.pt	Mon Dec 10 14:45:33 2018 +0100
+++ b/src/pyams_default_theme/component/video/templates/external-video-default.pt	Mon Dec 10 15:34:39 2018 +0100
@@ -4,4 +4,5 @@
 	<div tal:condition="view.description"
 		 tal:content="structure tales:html(view.description)">Description</div>
 	<tal:var replace="structure view.render_video()" />
+	<div class="author">${view.author}</div>
 </section>