Show delete button only if it is usable

This commit is contained in:
Georgy Litvinov 2021-02-25 15:17:33 +01:00
parent 0c8163070b
commit 5b91f360d7

View file

@ -39,7 +39,9 @@ ${scripts.add('<script async type="text/javascript" src="${urls.base}/themes/iph
<h1 itemprop="name" class="vcard foaf-person fn" <#if !editable>style="float:left;border-right:1px solid #A6B1B0;"</#if>>
<#-- Label -->
<@p.label individual editable labelCount localesCount/>
<@p.deleteIndividualLink individual />
<#if editable>
<@p.deleteIndividualLink individual />
</#if>
</h1>
<#-- Display preferredTitle if it exists; otherwise mostSpecificTypes -->
<#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!>