--- a/src/pyams_default_theme/component/paragraph/templates/video-default.pt Fri Dec 07 12:24:59 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/video-default.pt Fri Dec 07 16:06:59 2018 +0100
@@ -1,9 +1,9 @@
-<h3 tal:condition="view.title"
- tal:content="view.title">title</h3>
-<div tal:condition="view.description"
- tal:content="structure tales:html(view.description)">Description</div>
-<div class="video-wrapper"
- tal:condition="view.data">
+<section class="wrapper video-wrapper"
+ tal:condition="view.data">
+ <h3 tal:condition="view.title"
+ tal:content="view.title">title</h3>
+ <div tal:condition="view.description"
+ tal:content="structure tales:html(view.description)">Description</div>
<video controls
tal:define="video view.data;
href tales:absolute_url(video);
@@ -21,4 +21,4 @@
media 'all and (max-width: {0}px)'.format(media_width) if media_width else None;" />
</tal:loop>
</video>
-</div>
+</section>
--- a/src/pyams_default_theme/component/video/__init__.py Fri Dec 07 12:24:59 2018 +0100
+++ b/src/pyams_default_theme/component/video/__init__.py Fri Dec 07 16:06:59 2018 +0100
@@ -34,6 +34,7 @@
label = _("Default video renderer")
+ context_attrs = ('author',)
i18n_context_attrs = ('title', 'description')
video_renderer = None
--- a/src/pyams_default_theme/component/video/templates/external-video-default.pt Fri Dec 07 12:24:59 2018 +0100
+++ b/src/pyams_default_theme/component/video/templates/external-video-default.pt Fri Dec 07 16:06:59 2018 +0100
@@ -1,5 +1,7 @@
-<h3 tal:condition="view.title"
- tal:content="view.title">title</h3>
-<div tal:condition="view.description"
- tal:content="structure tales:html(view.description)">Description</div>
-<tal:var replace="structure view.render_video()" />
+<section class="wrapper video-wrapper">
+ <h3 tal:condition="view.title"
+ tal:content="view.title">title</h3>
+ <div tal:condition="view.description"
+ tal:content="structure tales:html(view.description)">Description</div>
+ <tal:var replace="structure view.render_video()" />
+</section>