NIHVIVO-650 Display label, moniker, and sparkline visualization on Freemarker version of individual profile page
This commit is contained in:
parent
85b3c1f398
commit
61956f4cf5
5 changed files with 221 additions and 100 deletions
|
@ -2,12 +2,48 @@
|
|||
|
||||
<#-- Template for individual profile page -->
|
||||
|
||||
<h2>${title}</h2>
|
||||
<div id="personWrap">
|
||||
<#if editStatus.showAdminPanel>
|
||||
<#include "individual-adminPanel.ftl">
|
||||
</#if>
|
||||
|
||||
<div class="contents entity <#if editStatus.showEditLinks>editing</#if>">
|
||||
<div id="labelAndMoniker">
|
||||
|
||||
<#if relatedSubject??>
|
||||
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
|
||||
<p><a href="${relatedSubject.url}">← return to ${relatedSubject.name}</a></p>
|
||||
<#else>
|
||||
<#-- Label -->
|
||||
<div class="datatypePropertyValue" id="label">
|
||||
<div class="statementWrap">
|
||||
<h2>${individual.name}</h2>
|
||||
<#if editStatus.showEditLinks>
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<#-- Moniker -->
|
||||
<#if individual.moniker?has_content>
|
||||
<div class="datatypeProperties">
|
||||
<div class="datatypePropertyValue" id="moniker">
|
||||
<div class="statementWrap">
|
||||
<em class="moniker">${individual.moniker}</em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</#if>
|
||||
</#if>
|
||||
</div> <!-- labelAndMoniker -->
|
||||
|
||||
test
|
||||
<#include "individual-sparklineVisualization.ftl">
|
||||
|
||||
${stylesheets.addFromTheme("/css/entity.css",
|
||||
"/css/visualization/visualization.css")}
|
||||
</div> <!-- #contents -->
|
||||
|
||||
</div> <!-- #personWrap -->
|
||||
|
||||
|
||||
${stylesheets.addFromTheme("/entity.css")}
|
||||
|
||||
<#-- RY Figure out which of these scripts really need to go into the head, and which are needed at all (e.g., tinyMCE??) -->
|
||||
${headScripts.add("/js/jquery.js",
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Template for admin panel on individual profile page -->
|
||||
|
||||
<div class="admin top">
|
||||
<h3 class="toggle">Admin Panel</h3>
|
||||
<div class="panelContents">
|
||||
<a href="${editStatus.editingUrl}"> edit this individual</a>
|
||||
<p>Resource URI: ${individual.URI}</p>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,6 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--
|
||||
Template for sparkline visualization on person profile page
|
||||
Vitro version is empty: VIVO version is in /vivo/productMods
|
||||
-->
|
Loading…
Add table
Add a link
Reference in a new issue