Permalink
Browse files

Add a 'leaf' class to menu nodes if they don't have any visible

children.
  • Loading branch information...
1 parent 2303b8d commit 3d4af44bed210be3af5f46e73d2650786fc90059 @markotibold markotibold committed Mar 26, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 fiber/templates/fiber/menu.html
@@ -23,6 +23,7 @@
{% if not node.show_in_menu %}hidden-in-menu{% endif %}
{% if not node.is_public %}non-public{% endif %}
{% if node.redirect_page %}redirect{% endif %}
+ {% if not node.has_visible_children %}leaf{% endif %}
">
<a href="{{ node.get_absolute_url }}"
data-fiber-data='{
@@ -65,6 +66,7 @@
{% if node in fiber_current_pages %}current{% endif %}
{% if node.is_first_child %}first{% endif %}
{% if node.is_last_child %}last{% endif %}
+ {% if not node.has_visible_children %}leaf{% endif %}
">
<a href="{{ node.get_absolute_url }}">{{ node.title }}</a>

0 comments on commit 3d4af44

Please sign in to comment.