Permalink
Browse files

Avoid empty <ul> tag in navigation_recurse.pt if bottomLevel is set.

svn path=/plone.app.portlets/trunk/; revision=51648
  • Loading branch information...
1 parent 30b75ad commit 5cb41ffea5c7330c0a5b3cb3262498b38ce1ba15 @gaudenz gaudenz committed Aug 18, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 CHANGES.txt
  2. +1 −1 plone/app/portlets/portlets/navigation_recurse.pt
View
3 CHANGES.txt
@@ -4,7 +4,8 @@ Changelog
2.2.2 - Unreleased
------------------
-- Nothing changed yet.
+- Avoid empty <ul> tag in navigation_recurse.pt if bottomLevel is set.
+ [gaudenzius]
2.2.1 - 2011-08-08
View
2 plone/app/portlets/portlets/navigation_recurse.pt
@@ -32,7 +32,7 @@
</a>
<ul tal:attributes="class python:'navTree navTreeLevel'+str(level)"
- tal:condition="python: len(children) > 0 and show_children">
+ tal:condition="python: len(children) > 0 and show_children and level &lt; bottomLevel">
<span tal:replace="structure python:view.recurse(children=children, level=level+1, bottomLevel=bottomLevel)" />
</ul>
</tal:level>

0 comments on commit 5cb41ff

Please sign in to comment.