Commit a3c7feb5 authored by Ivan Tyagov's avatar Ivan Tyagov

Set base class and "anonymous" undraggable class. Calculate only once its value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39552 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6da65de7
......@@ -43,7 +43,10 @@
isAnon python: here.portal_membership.isAnonymousUser();\n
columns python: options.get(\'columns\', 3);\n
is_tab_empty python: (len(layout)==1 and len(layout[0])==0) or\n
(len(layout)==3 and len(layout[0]+layout[1]+layout[2])==0) ">\n
(len(layout)==3 and len(layout[0]+layout[1]+layout[2])==0);\n
column_css_class python: test(isAnon, \n
\'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
......@@ -54,9 +57,7 @@
</div>\n
\n
<div id="portal-column-0"\n
tal:attributes="class python: test(isAnon, \n
\'portal-column-undraggable\', \n
\'portal-column\')"\n
tal:attributes="class column_css_class"\n
tal:condition="python: columns>=1">\n
<tal:block tal:condition="python: columns==1">\n
<span \n
......@@ -74,9 +75,7 @@
</div>\n
\n
<div id="portal-column-1"\n
tal:attributes="class python: test(isAnon, \n
\'portal-column-undraggable\', \n
\'portal-column\')"\n
tal:attributes="class column_css_class"\n
tal:condition="python: columns>=2">\n
<tal:block tal:condition="python: len(layout)>=2">\n
<span tal:replace="structure python:\n
......@@ -87,9 +86,7 @@
</div>\n
\n
<div id="portal-column-2"\n
tal:attributes="class python: test(isAnon, \n
\'portal-column-undraggable\', \n
\'portal-column\')"\n
tal:attributes="class column_css_class"\n
tal:condition="python: columns>=3">\n
<tal:block tal:condition="python: len(layout)>=3">\n
<span tal:replace="structure python:\n
......
587
\ No newline at end of file
588
\ 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