Don't print property group menu container elements if there are no property groups to display in the menu
This commit is contained in:
parent
a25efc8bd4
commit
01e6cf274c
1 changed files with 18 additions and 12 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue