--- a/src/pyams_content/features/preview/zmi/templates/preview.pt Mon Jul 09 12:43:15 2018 +0200
+++ b/src/pyams_content/features/preview/zmi/templates/preview.pt Mon Jul 09 13:39:20 2018 +0200
@@ -13,7 +13,7 @@
<i class="fa fa-fw fa-times-circle"></i>
</button>
<h3 class="modal-title"
- tal:define="config extension:configuration;">
+ tal:define="config tales:configuration;">
<span class="title" tal:content="structure view.title | context.title | config.title">Title</span>
</h3>
<tal:var replace="structure provider:form_toolbar" />
@@ -24,7 +24,7 @@
<tal:if condition="len(langs) == 1">
<div class="margin-top-10">
<iframe src="preview.html" frameborder="0" style="width: 100%;"
- tal:define="url extension:absolute_url(context, 'preview.html')"
+ tal:define="url tales:absolute_url(context, 'preview.html')"
tal:attributes="src string:${url}?lang=${langs[0]}"
onload="this.style.height = (jQuery(parent.window).height() - 150) + 'px'"></iframe>
</div>
@@ -35,7 +35,7 @@
<li tal:define="active python:'active' if repeat['lang'].start() else ''"
tal:attributes="class string:small ${active}">
<a data-toggle="tab" class="xsmall"
- tal:define="url extension:absolute_url(context, 'preview.html')"
+ tal:define="url tales:absolute_url(context, 'preview.html')"
tal:attributes="href string:#preview-${lang}">
<img tal:attributes="src string:/--static--/pyams_i18n/img/flags/${lang}.png" />
</a>
@@ -48,7 +48,7 @@
tal:attributes="class string:clearfix tab-pane ${active} fade in padding-5;
id string:preview-${lang};">
<iframe src="preview.html" frameborder="0" style="width: 100%;"
- tal:define="url extension:absolute_url(context, 'preview.html')"
+ tal:define="url tales:absolute_url(context, 'preview.html')"
tal:attributes="src string:${url}?lang=${lang}"
onload="this.style.height = (jQuery(parent.window).height() - 150) + 'px'"></iframe>
</div>