qrCodes changes to handle exception more gracefully, grants list view now displays the dates from the grant if they are not at the role level.
This commit is contained in:
parent
313463d37e
commit
3273fce539
4 changed files with 75 additions and 27 deletions
|
@ -1,11 +1,10 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Page providing options for disseminating QR codes -->
|
||||
<#assign qrCodeWidth = "150">
|
||||
|
||||
<#include "individual-qrCodeGenerator.ftl">
|
||||
|
||||
<#assign qrCodeWidth = "150">
|
||||
|
||||
<h2>Export QR Code <em>(<a href="${individual.qrData().aboutQrCodesUrl}" title="More info on QR codes">What is this?</a>)</em></h2>
|
||||
|
||||
<#assign thumbUrl = individual.thumbUrl! "${urls.images}/placeholders/person.thumbnail.jpg" >
|
||||
|
@ -15,17 +14,17 @@
|
|||
|
||||
<section class="vcard">
|
||||
<h4>VCard</h4>
|
||||
<@qrCodeVCard qrCodeWidth="150" />
|
||||
<@qrCodeVCard qrCodeWidth />
|
||||
<textarea name="qrCodeVCard" readonly>
|
||||
<img src="${getQrCodeUrlForVCard(qrCodeWidth)}" /><#t>
|
||||
<img src="${getQrCodeUrlForVCard(qrCodeWidth)!}" /><#t>
|
||||
</textarea><#t>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h4>Hyperlink</h4>
|
||||
<@qrCodeLink qrCodeWidth="150" />
|
||||
<@qrCodeLink qrCodeWidth />
|
||||
<textarea name="qrCodeLink" readonly>
|
||||
<img src="${getQrCodeUrlForLink(qrCodeWidth)}" /><#t>
|
||||
<img src="${getQrCodeUrlForLink(qrCodeWidth)!}" /><#t>
|
||||
</textarea><#t>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<#macro qrCodeVCard qrCodeWidth>
|
||||
|
||||
<#local qrCodeUrl = getQrCodeUrlForVCard(qrCodeWidth)>
|
||||
<#local qrCodeUrl = getQrCodeUrlForVCard(qrCodeWidth)!>
|
||||
|
||||
<#if qrCodeUrl != "">
|
||||
<img src="${qrCodeUrl}" />
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
<#macro qrCodeLink qrCodeWidth>
|
||||
|
||||
<#local qrCodeUrl = getQrCodeUrlForLink(qrCodeWidth)>
|
||||
<#local qrCodeUrl = getQrCodeUrlForLink(qrCodeWidth)!>
|
||||
|
||||
<#if qrCodeUrl != "">
|
||||
<img src="${qrCodeUrl}" />
|
||||
|
|
|
@ -31,7 +31,11 @@
|
|||
</#local>
|
||||
|
||||
<#local dateTime>
|
||||
<@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||
<#if statement.dateTimeStartRole?has_content >
|
||||
<@dt.yearIntervalSpan "${statement.dateTimeStartRole!}" "${statement.dateTimeEndRole!}" />
|
||||
<#else>
|
||||
<@dt.yearIntervalSpan "${statement.dateTimeStartGrant!}" "${statement.dateTimeEndGrant!}" />
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
${linkedIndividual} ${awardOrAdminBy} ${dateTime!}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue