NIHVIVO-650 Display image on new (Freemarker) individual profile page. Add <@url /> directive to generate img src value.
This commit is contained in:
parent
7004af4f73
commit
72d43f05a5
11 changed files with 216 additions and 118 deletions
|
@ -15,7 +15,7 @@
|
|||
<li>apples</li>
|
||||
<li>bananas</li>
|
||||
<li>oranges</li>
|
||||
<@firstLastList>
|
||||
</@firstLastList>
|
||||
|
||||
RY Consider rewriting in Java. Probably designers won't want to modify this. That would allow us to support
|
||||
nested <li> elements.
|
||||
|
@ -51,13 +51,13 @@
|
|||
<li>apples</li>,
|
||||
<li>bananas</li>,
|
||||
<li>oranges</li>
|
||||
<@firstLastListNested>
|
||||
</@firstLastListNested>
|
||||
|
||||
<@firstLastListNested delim="??">
|
||||
<li>apples, oranges</li>??
|
||||
<li>bananas, lemons</li>??
|
||||
<li>grapefruit, limes</li>
|
||||
<@firstLastListNested>
|
||||
</@firstLastListNested>
|
||||
|
||||
<@firstLastListNested delim="??">
|
||||
<li>Books
|
||||
|
@ -72,7 +72,7 @@
|
|||
<li>Time</li>
|
||||
</ul>
|
||||
</li>
|
||||
<@firstLastListNested>
|
||||
</@firstLastListNested>
|
||||
|
||||
RY Consider rewriting in Java. Probably designers won't want to modify this.
|
||||
-->
|
||||
|
|
43
webapp/web/templates/freemarker/lib/lib-property.ftl
Normal file
43
webapp/web/templates/freemarker/lib/lib-property.ftl
Normal file
|
@ -0,0 +1,43 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Macros for display of individual properties -->
|
||||
|
||||
<#--
|
||||
Macro: dataPropWrapper
|
||||
|
||||
Wrap a dataproperty in the appropriate divs
|
||||
|
||||
Usage:
|
||||
<@dataPropWrapper id="myId" editStatus=true>
|
||||
<#nested>
|
||||
</@dataPropWrapper>
|
||||
-->
|
||||
|
||||
<#macro dataPropWrapper id editStatus=false>
|
||||
<div class="datatypePropertyValue" id="${id}">
|
||||
<div class="statementWrap">
|
||||
<#nested>
|
||||
</div>
|
||||
</div>
|
||||
</#macro>
|
||||
|
||||
<#---------------------------------------------------------------------------->
|
||||
|
||||
<#--
|
||||
Macro: dataPropsWrapper
|
||||
|
||||
Wrap a dataproperty in the appropriate divs
|
||||
|
||||
Usage:
|
||||
<@dataPropsWrapper id="myId" editStatus=true>
|
||||
<#nested>
|
||||
</@dataPropsWrapper>
|
||||
-->
|
||||
|
||||
<#macro dataPropsWrapper id editStatus=false>
|
||||
<div class="datatypeProperties">
|
||||
<@dataPropWrapper id=id editStatus=editStatus>
|
||||
<#nested>
|
||||
</@dataPropWrapper>
|
||||
</div>
|
||||
</#macro>
|
Loading…
Add table
Add a link
Reference in a new issue