vitro/webapp/web/templates/freemarker/page/partials/developerPanel.ftl

91 lines
2.2 KiB
Text
Raw Normal View History

<#-- $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>
<#macro showTextbox key>
<input type="text" id="${key}" size="40" value="${settings[key]}" >
</#macro>
<style>
div.developer {
background-color: #f7dd8a;
padding: 0px 10px 0px 10px;
font-size: small;
font-variant: small-caps;
}
div.developer #developerPanelBody {
display: none;
}
div.developer .container {
border: thin groove black
}
</style>
2013-11-18 18:13:09 -05:00
<#if !settings.developerEnabled>
<#elseif !settings.mayControl>
<div class="developer">
<h1>${siteName} is running in developer mode.</h1>
</div>
<#else>
<div class="developer">
<h1 id="developerPanelClickMe">${siteName} is running in developer mode.
<span id="developerPanelClickText">(click for Options)</span>
</h1>
<div id="developerPanelBody">
<form>
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerEnabled" />
Enable developer mode
</label>
<div class="container">
Freemarker templates
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerDefeatFreemarkerCache" />
Defeat the template cache
</label>
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerInsertFreemarkerDelimiters" />
Insert HTML comments at start and end of templates
</label>
</div>
<div class="container">
SPARQL Queries
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerLoggingRDFServiceEnable" />
Log each query
</label>
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerLoggingRDFServiceStackTrace" />
Add stack trace
</label>
<label>
Restrict by calling stack
2013-11-18 18:13:09 -05:00
<@showTextbox "developerLoggingRDFServiceRestriction" />
</label>
</div>
<div class="container">
Language support
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerI18nDefeatCache" />
Defeat the cache of language property files
</label>
<label>
2013-11-18 18:13:09 -05:00
<@showCheckbox "developerI18nLogStringRequests" />
Log the retrieval of language strings
</label>
</div>
<input type="button" id="developerPanelSaveButton" value="Save Settings" name="foo" />
</form>
</div>
</div>
</#if>