Removed body attribute
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Jun 2018 15:25:36 +0200
changeset 37 b5a695494f88
parent 36 7b23c6794201
child 38 49d7aee43f78
Removed body attribute
src/pyams_default_theme/component/video/__init__.py
src/pyams_default_theme/component/video/templates/video-default.pt
--- a/src/pyams_default_theme/component/video/__init__.py	Mon Jun 11 15:25:10 2018 +0200
+++ b/src/pyams_default_theme/component/video/__init__.py	Mon Jun 11 15:25:36 2018 +0200
@@ -40,7 +40,7 @@
 
     label = _("Default video renderer")
 
-    i18n_context_attrs = ('title', 'body', 'description')
+    i18n_context_attrs = ('title', 'description')
 
     video_renderer = None
 
--- a/src/pyams_default_theme/component/video/templates/video-default.pt	Mon Jun 11 15:25:10 2018 +0200
+++ b/src/pyams_default_theme/component/video/templates/video-default.pt	Mon Jun 11 15:25:36 2018 +0200
@@ -1,7 +1,5 @@
 <h3 tal:condition="view.title"
 	tal:content="view.title">title</h3>
-<div tal:condition="view.body"
-	 tal:content="structure view.body">body</div>
 <div tal:condition="view.description"
 	 tal:content="structure extension:html(view.description)">Description</div>
 <tal:var replace="structure view.render_video()" />