NIHVIVO-1315: Refactoring generic individual pages
This commit is contained in:
parent
3fd87d1050
commit
593deed634
3 changed files with 28 additions and 18 deletions
|
@ -3,13 +3,12 @@
|
|||
<#-- Default individual profile page template -->
|
||||
|
||||
<section id="individual-intro" class="vcard" role="region">
|
||||
|
||||
<#-- Image -->
|
||||
<@p.imageLinks individual propertyGroups namespaces editable />
|
||||
|
||||
|
||||
<section id="individual-info" role="region">
|
||||
<#if individual.showAdminPanel>
|
||||
<#include "individual-adminPanel.ftl">
|
||||
<#include "individual-adminPanel.ftl">
|
||||
</#if>
|
||||
|
||||
<header>
|
||||
|
|
|
@ -125,7 +125,7 @@ name will be used as the label. -->
|
|||
If there's a mainImage statement but no thumbnail image, treat it as if there is no image. -->
|
||||
<#if (mainImage.statements)?has_content && thumbUrl?has_content>
|
||||
<a href="${individual.imageUrl}"><img class="individual-photo" src="${thumbUrl}" title="click to view larger image" alt="${individual.name}" width="160" /></a>
|
||||
<@p.editingLinks "${mainImage.localName}" mainImage.statements[0] editable />
|
||||
<div class="thumb-links"><@p.editingLinks "${mainImage.localName}" mainImage.statements[0] editable /></div>
|
||||
<#else>
|
||||
<@p.addLinkWithLabel mainImage editable "Photo" />
|
||||
<#if placeholderImage?has_content>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue