NIHVIVO-1332 Add object property statement edit links

This commit is contained in:
rjy7 2011-01-11 02:04:17 +00:00
parent a504b703bd
commit 94b9fa9091
11 changed files with 113 additions and 69 deletions

View file

@ -7,7 +7,7 @@
<#assign core = "http://vivoweb.org/ontology/core#">
<#assign editingClass>
<#if editStatus.showEditLinks>editing<#else></#if>
<#if editStatus.showEditingLinks>editing<#else></#if>
</#assign>
<#if editStatus.showAdminPanel>

View file

@ -6,7 +6,7 @@
<#macro dataPropertyList statements>
<#list statements as statement>
<@propertyListItem>${statement.value}</@propertyListItem>
<@propertyListItem statement>${statement.value}</@propertyListItem>
</#list>
</#macro>
@ -28,10 +28,32 @@
<#macro objectPropertyList statements template>
<#list statements as statement>
<@propertyListItem><#include "${template}"></@propertyListItem>
<@propertyListItem statement><#include "${template}"></@propertyListItem>
</#list>
</#macro>
<#macro propertyListItem>
<li role="listitem"><#nested></li>
<#macro propertyListItem statement>
<li role="listitem">
<@editLink statement />
<@deleteLink statement />
<#nested>
</li>
</#macro>
<#macro editLink statement>
<#if editStatus.showEditingLinks>
<#local url = statement.editUrl>
<#if url?has_content>
<a href="${url}">edit</a>
</#if>
</#if>
</#macro>
<#macro deleteLink statement>
<#if editStatus.showEditingLinks>
<#local url = statement.deleteUrl>
<#if url?has_content>
<a href="${url}">delete</a>
</#if>
</#if>
</#macro>