Fix vitroLinks display so if there are no links, property heading doesn't display twice.

This commit is contained in:
rjy7 2011-02-02 16:48:33 +00:00
parent 7b62bdd0a2
commit e954cccca3

View file

@ -146,9 +146,9 @@ name will be used as the label. -->
<#if (primaryLink?has_content || additionalLinks?has_content)> <#-- true when the property is in the list, even if not populated (when editing) -->
<nav role="navigation">
<#local primaryLinkLabel = "Primary Web Page">
<@propertyLabel primaryLink primaryLinkLabel />
<#local primaryLinkLabel = "Primary Web Page">
<#if primaryLink.statements?has_content> <#-- if there are any statements -->
<@propertyLabel primaryLink primaryLinkLabel />
<ul class="${linkListClass}" id="links-primary" role="list">
<@objectPropertyList primaryLink editable />
</ul>