Don't print property group menu container elements if there are no property groups to display in the menu

This commit is contained in:
rjy7 2011-01-13 15:55:34 +00:00
parent a25efc8bd4
commit 01e6cf274c

View file

@ -4,9 +4,13 @@
<#assign nameForOtherGroup = nameForOtherGroup!"other">
<nav id="property-group-menu" role="navigation">
<#if (propertyGroups.all)??>
<#assign groups = propertyGroups.all>
<#if groups?has_content>
<nav id="property-group-menu" role="navigation">
<ul role="list">
<#list propertyGroups.all as group>
<#list groups as group>
<#assign groupname = group.name(nameForOtherGroup)>
<#if groupname?has_content>
<#-- capitalize will capitalize each word in the name; cap_first only the first. We may need a custom
@ -15,4 +19,6 @@
</#if>
</#list>
</ul>
</nav>
</nav>
</#if>
</#if>