ensure that vcard individuals that are authors do not display as links

This commit is contained in:
Tim Worrall 2014-06-13 12:22:47 -04:00
parent 94f7fea0c2
commit be4fba9b48
2 changed files with 8 additions and 6 deletions

View file

@ -13,7 +13,11 @@
next statement -->
<#macro showAuthorship statement>
<#if statement.author??>
<a href="${profileUrl(statement.uri("author"))}" title="${i18n().author_name}">${statement.authorName}</a>
<#if statement.subclass?? && statement.subclass?contains("vcard")>
${statement.authorName}
<#else>
<a href="${profileUrl(statement.uri("author"))}" title="${i18n().author_name}">${statement.authorName}</a>
</#if>
<#else>
<#-- This shouldn't happen, but we must provide for it -->
<a href="${profileUrl(statement.uri("authorship"))}" title="${i18n().missing_author}">${i18n().missing_author}</a>