Fixed template error on person page when positions or research areas are null
This commit is contained in:
parent
b5777a60ad
commit
c01dc9bf65
1 changed files with 7 additions and 8 deletions
|
@ -33,15 +33,14 @@
|
|||
</#list>
|
||||
</#macro>
|
||||
|
||||
<#-- Full object property listing, including heading and ul wrapper element. -->
|
||||
<#-- Full object property listing, including heading and ul wrapper element.
|
||||
Assumes property is non-null. -->
|
||||
<#macro objectPropertyListing property editable template=property.template>
|
||||
<#if property?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
|
||||
<#local localName = property.localName>
|
||||
<h2 id="${localName}">${property.name?capitalize} <@addLink property editable /></h2>
|
||||
<ul id="individual-${localName}" role="list">
|
||||
<@p.objectProperty property editable />
|
||||
</ul>
|
||||
</#if>
|
||||
</#macro>
|
||||
|
||||
<#macro objectPropertyList property editable statements=property.statements template=property.template>
|
||||
|
|
Loading…
Add table
Reference in a new issue