Commit 7b20c099 authored by Ivan Tyagov's avatar Ivan Tyagov

Use macro for "Add new gadget " message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40904 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe9939ad
......@@ -265,7 +265,20 @@
</table>\n
\n
</tal:block>\n
\n
<tal:block metal:define-macro="add_new_gadget_message">\n
<div tal:condition="is_tab_empty">\n
<h3 i18n:translate="" \n
i18n:domain="ui"> \n
Your tab is empty.\n
</h3>\n
<h4 i18n:translate="" \n
i18n:domain="ui"> \n
Please use link (<b>Add gadgets</b>) to prepare it yourself.\n
</h4>\n
</div>\n
\n
</tal:block>
]]></unicode> </value>
</item>
......
......@@ -44,16 +44,8 @@
(len(layout)==3 and len(layout[0]+layout[1]+layout[2])==0);\n
page_wrapper_id python: options.get(\'page_wrapper_id\', \'page_wrapper\');"\n
tal:attributes="id page_wrapper_id">\n
<div tal:condition="is_tab_empty">\n
<h3 i18n:translate="" \n
i18n:domain="ui"> \n
Your tab is empty.\n
</h3>\n
<h4 i18n:translate="" \n
i18n:domain="ui"> \n
Please use link above (\'Add gadget\') to prepare it yourself.\n
</h4>\n
</div>\n
\n
<span metal:use-macro="container/Base_viewKnowledgePadMacroLibrary/macros/add_new_gadget_message"/> \n
\n
<table id="table_column_layout">\n
<tr>\n
......
......@@ -48,13 +48,7 @@
\'portal-column portal-column-undraggable\', \n
\'portal-column\')">\n
\n
<div tal:condition="python: is_tab_empty and not isAnon">\n
<h4 i18n:translate="" \n
i18n:domain="ui"> Your tab is empty.</h4>\n
<p i18n:translate="" \n
i18n:domain="ui"> Please use link (<b>Add gadgets</b>) to prepare it yourself.\n
</p>\n
</div>\n
<span metal:use-macro="container/Base_viewKnowledgePadMacroLibrary/macros/add_new_gadget_message"/> \n
\n
<div id="portal-column-0"\n
tal:attributes="class column_css_class"\n
......
624
\ No newline at end of file
626
\ No newline at end of file
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