Commit f98c5a35 authored by Ivan Tyagov's avatar Ivan Tyagov

Better styling of Subsection & Web Site Browser gadgets.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34896 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 961fbf1e
...@@ -42,22 +42,26 @@ ...@@ -42,22 +42,26 @@
<tal:block metal:define-macro="renderer">\n <tal:block metal:define-macro="renderer">\n
<ul class="first_level">\n <ul class="first_level">\n
<li>\n <li>\n
<a tal:content="section/Base_getTitle"\n <a class="section-link"\n
tal:content="section/Base_getTitle"\n
tal:attributes="href section/absolute_url;\n tal:attributes="href section/absolute_url;\n
title section/Base_getTitle;"/></li>\n title section/Base_getTitle;"/></li>\n
<ul class="second_level">\n <ul class="second_level">\n
\n \n
<li tal:repeat="root_section python: filter(lambda x:x.isVisible(), section.contentValues(portal_type=\'Web Section\', sort_on=\'int_index\'))">\n <tal:block tal:repeat="root_section python: filter(lambda x:x.isVisible(), section.contentValues(portal_type=\'Web Section\', sort_on=\'int_index\'))">\n
<tal:block \n <tal:block \n
tal:define="section_dom_id python: root_section.getRelativeUrl().replace(\'/\', \'_\');\n tal:define="section_dom_id python: root_section.getRelativeUrl().replace(\'/\', \'_\');\n
image_dom_id python: \'image_%s\' %section_dom_id;\n image_dom_id python: \'image_%s\' %section_dom_id;\n
siblings python: filter(lambda x:x.isVisible(), root_section.contentValues(portal_type=\'Web Section\', sort_on=\'int_index\'))">\n siblings python: filter(lambda x:x.isVisible(), root_section.contentValues(portal_type=\'Web Section\', sort_on=\'int_index\'));\n
\n exists_siblings python: len(siblings)">\n
<a tal:content="root_section/Base_getTitle"\n <li class="empty-list-node"\n
tal:condition="python:not len(siblings)"\n tal:condition="not: exists_siblings">\n
tal:attributes="href root_section/absolute_url;\n <a tal:content="root_section/Base_getTitle"\n
title section/Base_getTitle;"/>\n tal:attributes="href root_section/absolute_url;\n
<tal:block tal:condition="python:len(siblings)">\n title section/Base_getTitle;"/>\n
</li>\n
<li class="non-empty-list-node"\n
tal:condition="exists_siblings">\n
<img src="images/tree_closed.png" \n <img src="images/tree_closed.png" \n
alt=""\n alt=""\n
tal:attributes="id image_dom_id"/>\n tal:attributes="id image_dom_id"/>\n
...@@ -74,10 +78,10 @@ ...@@ -74,10 +78,10 @@
</li>\n </li>\n
</ul>\n </ul>\n
</div>\n </div>\n
</tal:block> \n </li>\n
\n \n
</tal:block>\n </tal:block>\n
</li>\n </tal:block>\n
\n \n
</ul>\n </ul>\n
</ul>\n </ul>\n
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts70214048.17</string> </value> <value> <string>ts72634708.91</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -492,34 +492,59 @@ div.block div.worklist_list ul li a:hover{\n ...@@ -492,34 +492,59 @@ div.block div.worklist_list ul li a:hover{\n
}\n }\n
\n \n
/* Gadget Browser */\n /* Gadget Browser */\n
div.gadget_browser ul {\n div.gadget-website-browser {\n
margin-top: 0.5em;\n
}\n
div.gadget-website-browser ul {\n
margin: 0em;\n margin: 0em;\n
padding: 0em;\n padding: 0em;\n
}\n }\n
\n \n
div.gadget_browser li {\n div.gadget-website-browser li {\n
padding-left: 0em;\n padding-left: 0em;\n
}\n }\n
\n \n
div.gadget_browser ul.first_level, ul.second_level{\n div.gadget-website-browser ul.first_level, ul.second_level{\n
list-style-type: none!important;\n list-style-type: none!important;\n
}\n }\n
\n \n
div.gadget_browser ul.first_level {\n div.gadget-website-browser ul.first_level {\n
padding-bottom: 0.5em;\n padding-bottom: 0.5em;\n
}\n }\n
\n div.gadget-website-browser .section-link{\n
div.gadget_browser ul.second_level{\n font-size: 115%;\n
padding-left: 0.3em;\n
}\n }\n
\n \n
div.gadget_browser ul.third_level{\n div.gadget-website-browser ul.second_level{\n
padding-left: 0.7em;\n padding-left: 0.7em;\n
}\n }\n
\n \n
div.gadget_browser a {\n div.gadget-website-browser ul.third_level{\n
font-weight:normal;\n padding-left: 1.4em;\n
}\n
\n
div.gadget-website-browser a, a:link, a:active, a:visited {\n
font-weight: normal;\n
color: inherit;\n
}\n
div.gadget-website-browser .empty-list-node{\n
list-style-type: square;\n
margin-left: 1.4em;\n
}\n
\n
/* Gadget SubSection */\n
div.gadget-subsection {\n
margin-top: 0.5em;\n
}\n }\n
div.gadget-subsection ul{\n
list-style-position: outside!important;\n
list-style-type:square!important;\n
margin: 0.5em;\n
margin-top: 0em;\n
padding: 0.5em;\n
}\n
\n
\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -528,7 +553,7 @@ div.gadget_browser a {\n ...@@ -528,7 +553,7 @@ div.gadget_browser a {\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>8829</int> </value> <value> <int>9381</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string>hidden_label subsectionGadget</string> </value> <value> <string>hidden_label gadget-subsection</string> </value>
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
......
...@@ -43,12 +43,10 @@ ...@@ -43,12 +43,10 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<div class="gadget_browser"\n <div class="gadget-website-browser"\n
tal:define="section_list python:here.contentValues(portal_type=\'Web Section\', sort_on=\'int_index\');\n tal:define="section_list python:here.contentValues(portal_type=\'Web Section\', sort_on=\'int_index\');\n
section_list python:filter(lambda x:x.isVisible(), section_list);\n section_list python:filter(lambda x:x.isVisible(), section_list);\n
half_count python:len(section_list) / 2">\n half_count python:len(section_list) / 2">\n
\n
<h4 value="" i18n:translate="" i18n:domain="ui">Browse Site</h4>\n
\n \n
<tal:block tal:repeat="section python:section_list[0:half_count]">\n <tal:block tal:repeat="section python:section_list[0:half_count]">\n
<tal:block metal:use-macro="container/Base_viewKnowledgeManagementMacroLibrary/macros/renderer">Macro goes here</tal:block> \n <tal:block metal:use-macro="container/Base_viewKnowledgeManagementMacroLibrary/macros/renderer">Macro goes here</tal:block> \n
......
1353 1354
\ 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