No Jira issue. Add tooltips to object property labels by pulling in the public description of th eproperty.

This commit is contained in:
Tim Worrall 2015-07-10 12:18:32 -04:00
parent f993cf85ab
commit 3fdc17d16d
2 changed files with 10 additions and 4 deletions

View file

@ -92,7 +92,7 @@
Assumes property is non-null. -->
<#macro objectPropertyListing property editable template=property.template>
<#local localName = property.localName>
<h2 id="${localName}" class="mainPropGroup">${property.name?capitalize} <@addLink property editable /> <@verboseDisplay property /></h2>
<h2 id="${localName}" class="mainPropGroup" title="${property.publicDescription!}">${property.name?capitalize} <@addLink property editable /> <@verboseDisplay property /></h2>
<ul id="individual-${localName}" role="list">
<@objectProperty property editable />
</ul>
@ -114,11 +114,11 @@ name will be used as the label. -->
displayLimitAnnot, for example). Otherwise the display looks odd, since neighboring
properties have labels.
<#if addLink?has_content || verboseDisplay?has_content>
<h2 id="${property.localName}">${label} ${addLink!} ${verboseDisplay!}</h2>
<h2 id="${property.localName}" title="${property.publicDescription!}">${label} ${addLink!} ${verboseDisplay!}</h2>
</#if>
-->
<#if editable>
<h2 id="${property.localName!}">${label} ${addLink!} ${verboseDisplay!}</h2>
<h2 id="${property.localName!}" title="${property.publicDescription!}">${label} ${addLink!} ${verboseDisplay!}</h2>
</#if>
</#macro>
@ -152,7 +152,7 @@ name will be used as the label. -->
</#macro>
<#macro propertyLabel property label="${property.name?capitalize}">
<h2 id="${property.localName}">${label} <@verboseDisplay property /></h2>
<h2 id="${property.localName}" title="${property.publicDescription!}">${label} <@verboseDisplay property /></h2>
</#macro>