Commit bad62bca authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_js_style: factorize the tal:define

parent 16126989
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
web_site python: here.getWebSiteValue(); web_site python: here.getWebSiteValue();
web_section python: here.getWebSectionValue(); web_section python: here.getWebSectionValue();
no_style_gadget_url python: web_section.getLayoutProperty('configuration_style_gadget_url', default=''); no_style_gadget_url python: web_section.getLayoutProperty('configuration_style_gadget_url', default='');
favicon_url python: web_section.getLayoutProperty('configuration_favicon_url', default='');
global_definitions_macros here/global_definitions/macros;"> global_definitions_macros here/global_definitions/macros;">
<tal:block metal:use-macro="global_definitions_macros/header_definitions" /> <tal:block metal:use-macro="global_definitions_macros/header_definitions" />
<html> <html>
...@@ -21,7 +22,7 @@ ...@@ -21,7 +22,7 @@
<noscript> <noscript>
<link rel="stylesheet" href="jsstyle.css"> <link rel="stylesheet" href="jsstyle.css">
</noscript> </noscript>
<tal:block tal:define="favicon_url python: web_section.getLayoutProperty('configuration_favicon_url', default='')" tal:condition="favicon_url"> <tal:block tal:condition="favicon_url">
<link rel="icon" tal:attributes="href favicon_url" /> <link rel="icon" tal:attributes="href favicon_url" />
</tal:block> </tal:block>
<!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui --> <!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui -->
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
web_site python: here.getWebSiteValue(); web_site python: here.getWebSiteValue();
web_section python: here.getWebSectionValue(); web_section python: here.getWebSectionValue();
no_style_gadget_url python: web_section.getLayoutProperty('configuration_style_gadget_url', default=''); no_style_gadget_url python: web_section.getLayoutProperty('configuration_style_gadget_url', default='');
favicon_url python: web_section.getLayoutProperty('configuration_favicon_url', default='');
global_definitions_macros here/global_definitions/macros;"> global_definitions_macros here/global_definitions/macros;">
<tal:block metal:use-macro="global_definitions_macros/header_definitions" /> <tal:block metal:use-macro="global_definitions_macros/header_definitions" />
<html> <html>
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
<noscript> <noscript>
<link rel="stylesheet" href="jsstyle.css"> <link rel="stylesheet" href="jsstyle.css">
</noscript> </noscript>
<tal:block tal:define="favicon_url python: web_section.getLayoutProperty('configuration_favicon_url', default='')" tal:condition="favicon_url"> <tal:block tal:condition="favicon_url">
<link rel="icon" tal:attributes="href favicon_url" /> <link rel="icon" tal:attributes="href favicon_url" />
</tal:block> </tal:block>
<!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui --> <!-- Prevent conflicts with Web Page reference provided by erp5_web_renderjs_ui -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment