NIHVIVO-1315, NIHVIVO1316: Re-factored the markup and styles for individual pages. Also I have introduced an image placeholder for non person individuals.

This commit is contained in:
mb863 2011-01-26 22:12:51 +00:00
parent e153452b81
commit 92764b0c1a
4 changed files with 60 additions and 79 deletions

View file

@ -3,16 +3,24 @@
<#-- Default individual profile page template -->
<section id="individual-intro" class="vcard" role="region">
<#-- Image -->
<@p.imageLinks individual=individual
propertyGroups=propertyGroups
namespaces=namespaces
editable=editable
showPlaceholder="with_add_link"
placeholder="${urls.images}/placeholders/person.thumbnail.jpg" />
<#assign individualImage>
<@p.imageLinks individual=individual
propertyGroups=propertyGroups
namespaces=namespaces
editable=editable
showPlaceholder="with_add_link"
placeholder="${urls.images}/placeholders/non.person.thumbnail.jpg" />
</#assign>
<section id="individual-info" role="region">
<#-- <#if ( individualImage?matches('<img class="individual-photo"')?size > 0 )> -->
<#if ( individualImage?contains('<img class="individual-photo"') )>
<#assign infoClass = 'class="withThumb"'/>
</#if>
<div id="photo-wrapper">${individualImage}</div>
<section id="individual-info" ${infoClass!} role="region">
<#if individual.showAdminPanel>
<#include "individual-adminPanel.ftl">
</#if>

View file

@ -45,7 +45,7 @@ name will be used as the label. -->
<#macro addLinkWithLabel property editable label="${property.name?capitalize}">
<#local addLink><@addLink property editable /></#local>
<#if addLink?has_content>
<h3 id="${property.localName}">${label} ${addLink}</h3>
<h2 id="${property.localName}">${label} ${addLink}</h2>
</#if>
</#macro>