Move test for showing site admin panel to site admin panel template, so doesn't have to be repeated in various individual templates.
This commit is contained in:
parent
b354d97972
commit
910526ddd5
1 changed files with 15 additions and 13 deletions
|
@ -2,17 +2,19 @@
|
|||
|
||||
<#-- Template for admin panel on individual profile page -->
|
||||
|
||||
<section id="admin">
|
||||
<h3>Admin Panel</h3><a class="edit-individual" href="${individual.editUrl}">Edit this individual</a>
|
||||
<#if individual.showAdminPanel>
|
||||
<section id="admin">
|
||||
<h3>Admin Panel</h3><a class="edit-individual" href="${individual.editUrl}">Edit this individual</a>
|
||||
|
||||
<#if verbosePropertyForm??>
|
||||
<#assign formId = "verbosePropertyForm">
|
||||
<form id="${formId}" action="${verbosePropertyForm.action}#${formId}" method="get">
|
||||
<input type="hidden" name="verbose" value="${verbosePropertyForm.verboseFieldValue}" />
|
||||
<span>Verbose property display for this session is <b>${verbosePropertyForm.currentValue}</b></span>
|
||||
<input type="submit" id="submit" value="Turn ${verbosePropertyForm.newValue}" />
|
||||
</form>
|
||||
</#if>
|
||||
<#if verbosePropertyForm??>
|
||||
<#assign formId = "verbosePropertyForm">
|
||||
<form id="${formId}" action="${verbosePropertyForm.action}#${formId}" method="get">
|
||||
<input type="hidden" name="verbose" value="${verbosePropertyForm.verboseFieldValue}" />
|
||||
<span>Verbose property display for this session is <b>${verbosePropertyForm.currentValue}</b></span>
|
||||
<input type="submit" id="submit" value="Turn ${verbosePropertyForm.newValue}" />
|
||||
</form>
|
||||
</#if>
|
||||
|
||||
<p class="uri-link">Resource URI: <a href="${individual.uri}" target="_blank">${individual.uri}</a></p>
|
||||
</section>
|
||||
<p class="uri-link">Resource URI: <a href="${individual.uri}" target="_blank">${individual.uri}</a></p>
|
||||
</section>
|
||||
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue