VIVO-660 Add an Authorization tabs to the developer panel
This commit is contained in:
parent
0f0cac5d35
commit
54509b1aee
7 changed files with 285 additions and 60 deletions
|
@ -1,12 +1,18 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
|
||||
<#macro showCheckbox key>
|
||||
<input type="checkbox" id="${key}" <#if settings[key]>checked</#if>>
|
||||
<#macro showCheckbox key, labelText>
|
||||
<label>
|
||||
<input type="checkbox" id="${key}" <#if settings[key]>checked</#if>>
|
||||
${labelText}
|
||||
</label>
|
||||
</#macro>
|
||||
|
||||
<#macro showTextbox key>
|
||||
<input type="text" id="${key}" size="30" value="${settings[key]}" >
|
||||
<#macro showTextbox key, labelText>
|
||||
<label>
|
||||
${labelText}
|
||||
<input type="text" id="${key}" size="30" value="${settings[key]}" >
|
||||
</label>
|
||||
</#macro>
|
||||
|
||||
<#if !settings.developer_enabled>
|
||||
|
@ -21,14 +27,10 @@
|
|||
</h1>
|
||||
<div id="developerPanelBody">
|
||||
<div>
|
||||
<label>
|
||||
<@showCheckbox "developer_enabled" />
|
||||
Enable developer mode
|
||||
</label>
|
||||
<label>
|
||||
<@showCheckbox "developer_permitAnonymousControl" />
|
||||
Allow anonymous user to see and modify developer settings
|
||||
</label>
|
||||
<@showCheckbox "developer_enabled",
|
||||
"Enable developer mode" />
|
||||
<@showCheckbox "developer_permitAnonymousControl",
|
||||
"Allow anonymous user to see and modify developer settings" />
|
||||
</div>
|
||||
|
||||
<div id="developerTabs">
|
||||
|
@ -41,26 +43,18 @@
|
|||
<div class="devright">
|
||||
<div class="container">
|
||||
Page configuration
|
||||
<label>
|
||||
<@showCheckbox "developer_pageContents_logCustomListView" />
|
||||
Log the use of custom list view XML files.
|
||||
</label>
|
||||
<label>
|
||||
<@showCheckbox "developer_pageContents_logCustomShortView" />
|
||||
Log the use of custom short views in search, index and browse pages.
|
||||
</label>
|
||||
<@showCheckbox "developer_pageContents_logCustomListView",
|
||||
"Log the use of custom list view XML files." />
|
||||
<@showCheckbox "developer_pageContents_logCustomShortView" ,
|
||||
"Log the use of custom short views in search, index and browse pages."/>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
Language support
|
||||
<label>
|
||||
<@showCheckbox "developer_i18n_defeatCache" />
|
||||
Defeat the cache of language property files
|
||||
</label>
|
||||
<label>
|
||||
<@showCheckbox "developer_i18n_logStringRequests" />
|
||||
Log the retrieval of language strings
|
||||
</label>
|
||||
<@showCheckbox "developer_i18n_defeatCache",
|
||||
"Defeat the cache of language property files" />
|
||||
<@showCheckbox "developer_i18n_logStringRequests",
|
||||
"Log the retrieval of language strings" />
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
|
@ -77,43 +71,43 @@
|
|||
<div class="devleft">
|
||||
<div class="container">
|
||||
Freemarker templates
|
||||
<label>
|
||||
<@showCheckbox "developer_defeatFreemarkerCache" />
|
||||
Defeat the template cache
|
||||
</label>
|
||||
<label>
|
||||
<@showCheckbox "developer_insertFreemarkerDelimiters" />
|
||||
Insert HTML comments at start and end of templates
|
||||
</label>
|
||||
<@showCheckbox "developer_defeatFreemarkerCache",
|
||||
"Defeat the template cache" />
|
||||
<@showCheckbox "developer_insertFreemarkerDelimiters",
|
||||
"Insert HTML comments at start and end of templates" />
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
SPARQL Queries
|
||||
<label>
|
||||
<@showCheckbox "developer_loggingRDFService_enable" />
|
||||
Log each query
|
||||
</label>
|
||||
<@showCheckbox "developer_loggingRDFService_enable",
|
||||
"Log each query" />
|
||||
<div class="within">
|
||||
<label>
|
||||
<@showCheckbox "developer_loggingRDFService_stackTrace" />
|
||||
Add stack trace
|
||||
</label>
|
||||
<label>
|
||||
Restrict by query string
|
||||
<@showTextbox "developer_loggingRDFService_queryRestriction" />
|
||||
</label>
|
||||
<label>
|
||||
Restrict by calling stack
|
||||
<@showTextbox "developer_loggingRDFService_stackRestriction" />
|
||||
</label>
|
||||
<@showCheckbox "developer_loggingRDFService_stackTrace",
|
||||
"Add stack trace" />
|
||||
<@showTextbox "developer_loggingRDFService_queryRestriction",
|
||||
"Restrict by query string" />
|
||||
<@showTextbox "developer_loggingRDFService_stackRestriction",
|
||||
"Restrict by calling stack" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="developerTabAuthorization">
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
||||
<@showCheckbox "developer_authorization_logDecisions_enable",
|
||||
"Write policy decisions to the log" />
|
||||
<div class="within">
|
||||
<@showCheckbox "developer_authorization_logDecisions_skipInconclusive",
|
||||
"Skip inconclusive decisions" />
|
||||
<@showCheckbox "developer_authorization_logDecisions_addIdentifiers",
|
||||
"Include the user identifiers in the log record" />
|
||||
<@showTextbox "developer_authorization_logDecisions_actionRestriction",
|
||||
"Restrict by requested action" />
|
||||
<@showTextbox "developer_authorization_logDecisions_policyRestriction",
|
||||
"Restrict by policy name" />
|
||||
<@showTextbox "developer_authorization_logDecisions_userRestriction",
|
||||
"Restrict by user identifiers" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue