settings.html
246 lines
| 8.2 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r619 | ${_('Settings administration')} - ${c.rhodecode_name} | |||
r547 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Settings')} | ||||
</%def> | ||||
<%def name="page_nav()"> | ||||
${self.menu('admin')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
r1888 | ${self.breadcrumbs()} | |||
r547 | </div> | |||
<!-- end box / title --> | ||||
r1888 | ||||
r547 | <h3>${_('Remap and rescan repositories')}</h3> | |||
${h.form(url('admin_setting', setting_id='mapping'),method='put')} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
r1888 | ||||
r547 | <div class="fields"> | |||
<div class="field"> | ||||
<div class="label label-checkbox"> | ||||
<label for="destroy">${_('rescan option')}:</label> | ||||
</div> | ||||
<div class="checkboxes"> | ||||
<div class="checkbox"> | ||||
${h.checkbox('destroy',True)} | ||||
Augusto Herrmann
|
r1575 | <label for="destroy"> | ||
r904 | <span class="tooltip" title="${h.tooltip(_('In case a repository was deleted from filesystem and there are leftovers in the database check this option to scan obsolete data in database and remove it.'))}"> | |||
r547 | ${_('destroy old data')}</span> </label> | |||
</div> | ||||
</div> | ||||
</div> | ||||
r1888 | ||||
r547 | <div class="buttons"> | |||
Augusto Herrmann
|
r1472 | ${h.submit('rescan',_('Rescan repositories'),class_="ui-button")} | ||
r1888 | </div> | |||
r547 | </div> | |||
r1888 | </div> | |||
r547 | ${h.end_form()} | |||
r1888 | ||||
r547 | <h3>${_('Whoosh indexing')}</h3> | |||
${h.form(url('admin_setting', setting_id='whoosh'),method='put')} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
r1888 | ||||
r547 | <div class="fields"> | |||
<div class="field"> | ||||
<div class="label label-checkbox"> | ||||
Augusto Herrmann
|
r1575 | <label>${_('index build option')}:</label> | ||
r547 | </div> | |||
<div class="checkboxes"> | ||||
<div class="checkbox"> | ||||
${h.checkbox('full_index',True)} | ||||
Augusto Herrmann
|
r1575 | <label for="full_index">${_('build from scratch')}</label> | ||
r547 | </div> | |||
</div> | ||||
</div> | ||||
r1888 | ||||
r547 | <div class="buttons"> | |||
Augusto Herrmann
|
r1472 | ${h.submit('reindex',_('Reindex'),class_="ui-button")} | ||
r1888 | </div> | |||
r547 | </div> | |||
r1888 | </div> | |||
r547 | ${h.end_form()} | |||
r1888 | ||||
<h3>${_('Global application settings')}</h3> | ||||
r547 | ${h.form(url('admin_setting', setting_id='global'),method='put')} | |||
<div class="form"> | ||||
<!-- fields --> | ||||
r1888 | ||||
r547 | <div class="fields"> | |||
r1888 | ||||
r547 | <div class="field"> | |||
<div class="label"> | ||||
r548 | <label for="rhodecode_title">${_('Application name')}:</label> | |||
r547 | </div> | |||
<div class="input"> | ||||
r548 | ${h.text('rhodecode_title',size=30)} | |||
r547 | </div> | |||
</div> | ||||
r1888 | ||||
r547 | <div class="field"> | |||
<div class="label"> | ||||
r548 | <label for="rhodecode_realm">${_('Realm text')}:</label> | |||
r547 | </div> | |||
<div class="input"> | ||||
r548 | ${h.text('rhodecode_realm',size=30)} | |||
r547 | </div> | |||
</div> | ||||
r1888 | ||||
r890 | <div class="field"> | |||
<div class="label"> | ||||
Augusto Herrmann
|
r1575 | <label for="rhodecode_ga_code">${_('GA code')}:</label> | ||
r890 | </div> | |||
<div class="input"> | ||||
r891 | ${h.text('rhodecode_ga_code',size=30)} | |||
r890 | </div> | |||
</div> | ||||
r1888 | ||||
r547 | <div class="buttons"> | |||
Augusto Herrmann
|
r1472 | ${h.submit('save',_('Save settings'),class_="ui-button")} | ||
${h.reset('reset',_('Reset'),class_="ui-button")} | ||||
r1888 | </div> | |||
r547 | </div> | |||
r1888 | </div> | |||
r547 | ${h.end_form()} | |||
r1888 | <h3>${_('Mercurial settings')}</h3> | |||
r547 | ${h.form(url('admin_setting', setting_id='mercurial'),method='put')} | |||
<div class="form"> | ||||
<!-- fields --> | ||||
r1888 | ||||
r547 | <div class="fields"> | |||
r1888 | ||||
r547 | <div class="field"> | |||
<div class="label label-checkbox"> | ||||
Augusto Herrmann
|
r1575 | <label>${_('Web')}:</label> | ||
r547 | </div> | |||
<div class="checkboxes"> | ||||
<div class="checkbox"> | ||||
${h.checkbox('web_push_ssl','true')} | ||||
<label for="web_push_ssl">${_('require ssl for pushing')}</label> | ||||
</div> | ||||
</div> | ||||
r1888 | </div> | |||
r547 | ||||
<div class="field"> | ||||
<div class="label label-checkbox"> | ||||
Augusto Herrmann
|
r1575 | <label>${_('Hooks')}:</label> | ||
r547 | </div> | |||
<div class="checkboxes"> | ||||
<div class="checkbox"> | ||||
${h.checkbox('hooks_changegroup_update','True')} | ||||
<label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label> | ||||
</div> | ||||
<div class="checkbox"> | ||||
${h.checkbox('hooks_changegroup_repo_size','True')} | ||||
<label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label> | ||||
r661 | </div> | |||
<div class="checkbox"> | ||||
r2407 | ${h.checkbox('hooks_changegroup_push_logger','True')} | |||
<label for="hooks_changegroup_push_logger">${_('Log user push commands')}</label> | ||||
r661 | </div> | |||
<div class="checkbox"> | ||||
${h.checkbox('hooks_preoutgoing_pull_logger','True')} | ||||
<label for="hooks_preoutgoing_pull_logger">${_('Log user pull commands')}</label> | ||||
r1888 | </div> | |||
r547 | </div> | |||
r1706 | <div class="input" style="margin-top:10px"> | |||
r1756 | ${h.link_to(_('advanced setup'),url('admin_edit_setting',setting_id='hooks'),class_="ui-btn")} | |||
r1888 | </div> | |||
</div> | ||||
r547 | <div class="field"> | |||
<div class="label"> | ||||
<label for="paths_root_path">${_('Repositories location')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
r1888 | ${h.text('paths_root_path',size=30,readonly="readonly")} | |||
<span id="path_unlock" class="tooltip" | ||||
Augusto Herrmann
|
r1472 | title="${h.tooltip(_('This a crucial application setting. If you are really sure you need to change this, you must restart application in order to make this setting take effect. Click this label to unlock.'))}"> | ||
r547 | ${_('unlock')}</span> | |||
</div> | ||||
</div> | ||||
r1888 | ||||
r547 | <div class="buttons"> | |||
Augusto Herrmann
|
r1472 | ${h.submit('save',_('Save settings'),class_="ui-button")} | ||
${h.reset('reset',_('Reset'),class_="ui-button")} | ||||
r1888 | </div> | |||
r547 | </div> | |||
r1888 | </div> | |||
r547 | ${h.end_form()} | |||
r1888 | ||||
r547 | <script type="text/javascript"> | |||
YAHOO.util.Event.onDOMReady(function(){ | ||||
YAHOO.util.Event.addListener('path_unlock','click',function(){ | ||||
YAHOO.util.Dom.get('paths_root_path').removeAttribute('readonly'); | ||||
}); | ||||
}); | ||||
</script> | ||||
r1888 | ||||
r1673 | <h3>${_('Test Email')}</h3> | |||
${h.form(url('admin_setting', setting_id='email'),method='put')} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
r1888 | ||||
r1673 | <div class="fields"> | |||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="test_email">${_('Email to')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.text('test_email',size=30)} | ||||
</div> | ||||
</div> | ||||
r1888 | ||||
r1673 | <div class="buttons"> | |||
${h.submit('send',_('Send'),class_="ui-button")} | ||||
r1888 | </div> | |||
r1673 | </div> | |||
r1888 | </div> | |||
${h.end_form()} | ||||
r2192 | <h3>${_('System Info and Packages')}</h3> | |||
<div class="form"> | ||||
<div> | ||||
<h5 id="expand_modules" style="cursor: pointer">↓ ${_('show')} ↓</h5> | ||||
</div> | ||||
<div id="expand_modules_table" style="display:none"> | ||||
<h5>Python - ${c.py_version}</h5> | ||||
<h5>System - ${c.platform}</h5> | ||||
r2207 | ||||
r2192 | <table class="table" style="margin:0px 0px 0px 20px"> | |||
<colgroup> | ||||
<col style="width:220px"> | ||||
</colgroup> | ||||
<tbody> | ||||
%for key, value in c.modules: | ||||
<tr> | ||||
r2223 | <th style="text-align: right;padding-right:5px;">${key}</th> | |||
r2192 | <td>${value}</td> | |||
</tr> | ||||
%endfor | ||||
</tbody> | ||||
</table> | ||||
r2207 | </div> | |||
r2192 | </div> | |||
r2207 | ||||
r2192 | <script type="text/javascript"> | |||
YUE.on('expand_modules','click',function(e){ | ||||
YUD.setStyle('expand_modules_table','display',''); | ||||
YUD.setStyle('expand_modules','display','none'); | ||||
}) | ||||
</script> | ||||
r2207 | ||||
r547 | </div> | |||
r1888 | </%def> | |||