NIHVIVO-2734 Don't show property group menu if there are no property group menu items

This commit is contained in:
ryounes 2011-06-28 20:19:07 +00:00
parent 030b454a2b
commit 9479a220f5

View file

@ -8,17 +8,19 @@
<#assign groups = propertyGroups.all> <#assign groups = propertyGroups.all>
<#if groups?has_content> <#if groups?has_content>
<nav id="property-group-menu" role="navigation"> <#if (groups?size > 1) || (groups?first).getName(nameForOtherGroup)?has_content>
<ul role="list"> <nav id="property-group-menu" role="navigation">
<#list groups as group> <ul role="list">
<#assign groupname = group.getName(nameForOtherGroup)> <#list groups as group>
<#if groupname?has_content> <#assign groupname = group.getName(nameForOtherGroup)>
<#-- capitalize will capitalize each word in the name; cap_first only the first. We may need a custom <#if groupname?has_content>
function to capitalize all except function words. --> <#-- capitalize will capitalize each word in the name; cap_first only the first. We may need a custom
<li role="listitem"><a href="#${groupname}">${groupname?capitalize}</a></li> function to capitalize all except function words. -->
</#if> <li role="listitem"><a href="#${groupname}">${groupname?capitalize}</a></li>
</#list> </#if>
</ul> </#list>
</nav> </ul>
</nav>
</#if>
</#if> </#if>
</#if> </#if>