update portlet markup to match folder links

This commit is contained in:
Frédéric Péters 2014-02-05 13:47:10 +01:00
parent 36e8f038c2
commit 9d384eba1a
1 changed files with 17 additions and 13 deletions

View File

@ -3,21 +3,25 @@
<span class="portletTopLeft"></span>
<span class="portletTopRight"></span>
</dt>
<dd class="portletItem">
<ul>
<li tal:repeat="item context/parent_folders"><a
tal:attributes="href item/absolute_url" tal:content="item/Title">parent</a></li>
</ul>
<strong tal:content="context/Title">title</strong>
<ul>
<li tal:repeat="item context/child_folders"><a
tal:attributes="href item/getURL" tal:content="item/Title">child</a></li>
</ul>
<tal:items tal:repeat="item context/parent_folders">
<dd class="portletItem"
tal:define="oddrow repeat/item/odd;"
tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
<a tal:attributes="href item/absolute_url" tal:content="item/Title">parent</a>
</dd>
</tal:items>
<dd class="portletItem current-folder">
<strong tal:content="context/Title">title</strong>
</dd>
<tal:items tal:repeat="item context/child_folders">
<dd class="portletItem"
tal:define="oddrow repeat/item/odd;"
tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
<a tal:attributes="href item/getURL" tal:content="item/Title">child</a>
</dd>
</tal:items>
<dd class="portletFooter">
<span class="portletBottomLeft"></span>
<span class="portletBottomRight"></span>