# HG changeset patch # User Thierry Florac # Date 1545989191 -3600 # Node ID 23daa39df50bbb9c2711a7b326baca1c3771dc59 # Parent 8f606992afed8fbf953f790f5a668c6356e21760 Updated default audio paragraph renderer diff -r 8f606992afed -r 23daa39df50b src/pyams_default_theme/component/paragraph/audio.py --- a/src/pyams_default_theme/component/paragraph/audio.py Fri Dec 28 10:26:10 2018 +0100 +++ b/src/pyams_default_theme/component/paragraph/audio.py Fri Dec 28 10:26:31 2018 +0100 @@ -10,7 +10,6 @@ # FOR A PARTICULAR PURPOSE. # - __docformat__ = 'restructuredtext' from pyams_content.component.paragraph.interfaces.audio import IAudioParagraph @@ -34,3 +33,6 @@ label = _("Default audio renderer") weight = 1 + + context_attrs = ('author', 'data', ) + i18n_context_attrs = ('title', 'description', ) diff -r 8f606992afed -r 23daa39df50b src/pyams_default_theme/component/paragraph/templates/audio-default.pt --- a/src/pyams_default_theme/component/paragraph/templates/audio-default.pt Fri Dec 28 10:26:10 2018 +0100 +++ b/src/pyams_default_theme/component/paragraph/templates/audio-default.pt Fri Dec 28 10:26:31 2018 +0100 @@ -1,1 +1,30 @@ - +
+

title

+
Description
+
+ +
+ ${structure:tales:picture(image, lg_width=2, md_width=2, sm_width=3, xs_width=3)} +
+
+
+ +
${view.author}
+
+
+
\ No newline at end of file