NIHVIVO-2479 Small improvements to dump output

This commit is contained in:
ryounes 2011-04-22 20:27:55 +00:00
parent 8f0b6f7b01
commit 0926e5cc30
6 changed files with 39 additions and 17 deletions

View file

@ -120,7 +120,7 @@ div.dump {
</@liItem>
</#list>
</ul>
<#else>no values
<#else>[none]
</#if>
</#macro>
@ -134,14 +134,17 @@ div.dump {
</@liItem>
</#list>
</ul>
<#else>no values
<#else>[none]
</#if>
</#macro>
<#macro doScalarValue value>
<strong>Value:</strong>
<#if value?is_string>${value}
<#if value?is_string>
<#if value?has_content>${value}
<#else>[empty]
</#if>
<#elseif value?is_number>${value?c}
<#elseif value?is_boolean>${value?string}
<#elseif value?is_date>${value?string("EEEE, MMMM dd, yyyy hh:mm:ss a zzz")}

View file

@ -5,7 +5,7 @@
<#import "lib-properties.ftl" as p>
<#list propertyGroups.all as group>
<#assign groupName = group.name(nameForOtherGroup)>
<#assign groupName = group.getName(nameForOtherGroup)>
<section class="property-group" role="region">
<nav class="scroll-up" role="navigation">

View file

@ -11,7 +11,7 @@
<nav id="property-group-menu" role="navigation">
<ul role="list">
<#list groups as group>
<#assign groupname = group.name(nameForOtherGroup)>
<#assign groupname = group.getName(nameForOtherGroup)>
<#if groupname?has_content>
<#-- capitalize will capitalize each word in the name; cap_first only the first. We may need a custom
function to capitalize all except function words. -->