NIHVIVO-if all grants or pubs are hidden, the manage link should still be displayed

This commit is contained in:
tworrall 2012-06-27 19:17:34 +00:00
parent f1a56e5947
commit b3d3a870ac
2 changed files with 54 additions and 11 deletions

View file

@ -28,13 +28,13 @@
<#list group.properties as property>
<article class="property" role="article">
<#-- Property display name -->
<#if property.localName == "authorInAuthorship" && editable>
<#if property.localName == "authorInAuthorship" && editable && (publicationCount > 0) >
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property />
<a id="managePropLink" class="manageLinks" href="${urls.base}/managePublications?subjectUri=${subjectUri[1]!}" title="manage publications" <#if verbose>style="padding-top:10px"</#if> >
manage publications
</a>
</h3>
<#elseif property.localName == "hasResearcherRole" && editable>
<#elseif property.localName == "hasResearcherRole" && editable && (grantCount > 0) >
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property />
<a id="manageGrantLink" class="manageLinks" href="${urls.base}/manageGrants?subjectUri=${subjectUri[1]!}" title="manage grants & projects" <#if verbose>style="padding-top:10px"</#if> >
manage grants & projects