Commit 3526128b authored by Nicolas Dumazet's avatar Nicolas Dumazet

simplify tales from r31615: put condition in tag itself


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31616 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02326ff7
...@@ -179,14 +179,12 @@ ...@@ -179,14 +179,12 @@
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n <span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n
</button>\n </button>\n
<tal:block tal:condition="python: len(here.getVisibleAllowedContentTypeList()) > 0">\n <button tal:condition="python: len(here.getVisibleAllowedContentTypeList()) > 0" class="new" type="submit" title="New"\n
<button class="new" type="submit" title="New"\n
tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n
i18n:attributes="title" i18n:domain="ui">\n i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">New</span>\n <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n
</button>\n </button>\n
</tal:block>\n
<button class="clone" type="submit" title="Clone"\n <button class="clone" type="submit" title="Clone"\n
name="Base_createCloneDocument:method"\n name="Base_createCloneDocument:method"\n
tal:condition="not: list_mode"\n tal:condition="not: list_mode"\n
......
860 861
\ No newline at end of file \ 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