comparison rhodecode/templates/admin/settings/settings.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents 38ab60c1fb2b
children 31e119cb02ef
comparison
equal deleted inserted replaced
4115:8b7294a804a0 4116:ffd45b185016
1 ## -*- coding: utf-8 -*- 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/> 2 <%inherit file="/base/base.html"/>
3 3
4 <%def name="title()"> 4 <%def name="title()">
5 ${_('Settings administration')} &middot; ${c.rhodecode_name} 5 ${_('Settings administration')}
6 %if c.rhodecode_name:
7 &middot; ${c.rhodecode_name}
8 %endif
6 </%def> 9 </%def>
7 10
8 <%def name="breadcrumbs_links()"> 11 <%def name="breadcrumbs_links()">
9 ${h.link_to(_('Admin'),h.url('admin_home'))} 12 ${h.link_to(_('Admin'),h.url('admin_home'))}
10 &raquo; 13 &raquo;
15 ${self.menu('admin')} 18 ${self.menu('admin')}
16 </%def> 19 </%def>
17 20
18 <%def name="main()"> 21 <%def name="main()">
19 <div class="box"> 22 <div class="box">
20 <!-- box / title -->
21 <div class="title"> 23 <div class="title">
22 ${self.breadcrumbs()} 24 ${self.breadcrumbs()}
23 </div> 25 </div>
24 <!-- end box / title -->
25 26
26 <h3>${_('Remap and rescan repositories')}</h3> 27 ##main
27 ${h.form(url('admin_setting', setting_id='mapping'),method='put')} 28 <div style="width: 150px; float:left">
28 <div class="form"> 29 <ul class="nav nav-pills nav-stacked">
29 <!-- fields --> 30 <li>
31 <div class="gravatar_box" style="height: 26px">
32 <div class="gravatar" style="float: left">
33 <i class="icon-cog" style="font-size: 26px"></i>
34 </div>
35 <div style="margin:10px 0px 10px 0px; color:#5f5f5f; float:left">
36 <strong>${_('Settings')}</strong>
37 </div>
38 </div>
39 </li>
40 <li class="${'active' if c.active=='vcs' else ''}"><a href="${h.url('admin_settings')}">${_('VCS')}</a></li>
41 <li class="${'active' if c.active=='mapping' else ''}"><a href="${h.url('admin_settings_mapping')}">${_('Remap and rescan')}</a></li>
42 <li class="${'active' if c.active=='global' else ''}"><a href="${h.url('admin_settings_global')}">${_('Global')}</a></li>
43 <li class="${'active' if c.active=='visual' else ''}"><a href="${h.url('admin_settings_visual')}">${_('Visual')}</a></li>
44 <li class="${'active' if c.active=='email' else ''}"><a href="${h.url('admin_settings_email')}">${_('Email')}</a></li>
45 <li class="${'active' if c.active=='hooks' else ''}"><a href="${h.url('admin_settings_hooks')}">${_('Hooks')}</a></li>
46 <li class="${'active' if c.active=='search' else ''}"><a href="${h.url('admin_settings_search')}">${_('Full text search')}</a></li>
47 <li class="${'active' if c.active=='system' else ''}"><a href="${h.url('admin_settings_system')}">${_('System Info')}</a></li>
48 <li class="${'active' if c.active=='license' else ''}"><a href="${h.url('admin_settings_license')}">${_('License')}</a></li>
30 49
31 <div class="fields"> 50 </ul>
32 <div class="field">
33 <div class="label label-checkbox">
34 <label for="destroy">${_('Rescan option')}:</label>
35 </div>
36 <div class="checkboxes">
37 <div class="checkbox">
38 ${h.checkbox('destroy',True)}
39 <label for="destroy">
40 <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.'))}">
41 ${_('Destroy old data')}</span> </label>
42 </div>
43 <div class="checkbox">
44 ${h.checkbox('invalidate',True)}
45 <label for="invalidate">
46 <span class="tooltip" title="${h.tooltip(_('Invalidate cache for all repositories during scan'))}">
47 ${_('Invalidate cache for all repositories')}</span> </label>
48 </div>
49 <span class="help-block">${_('Rescan repositories location for new repositories. Also deletes obsolete if `destroy` flag is checked ')}</span>
50 </div>
51 </div>
52
53 <div class="buttons">
54 ${h.submit('rescan',_('Rescan repositories'),class_="ui-btn large")}
55 </div>
56 </div>
57 </div>
58 ${h.end_form()}
59
60 <h3>${_('Whoosh indexing')}</h3>
61 ${h.form(url('admin_setting', setting_id='whoosh'),method='put')}
62 <div class="form">
63 <!-- fields -->
64
65 <div class="fields">
66 <div class="field">
67 <div class="label label-checkbox">
68 <label>${_('Index build option')}:</label>
69 </div>
70 <div class="checkboxes">
71 <div class="checkbox">
72 ${h.checkbox('full_index',True)}
73 <label for="full_index">${_('Build from scratch')}</label>
74 </div>
75 </div>
76 </div>
77
78 <div class="buttons">
79 ${h.submit('reindex',_('Reindex'),class_="ui-btn large")}
80 </div>
81 </div>
82 </div>
83 ${h.end_form()}
84
85 <h3>${_('Global application settings')}</h3>
86 ${h.form(url('admin_setting', setting_id='global'),method='put')}
87 <div class="form">
88 <!-- fields -->
89
90 <div class="fields">
91
92 <div class="field">
93 <div class="label">
94 <label for="rhodecode_title">${_('Site branding')}:</label>
95 </div>
96 <div class="input">
97 ${h.text('rhodecode_title',size=30)}
98 </div>
99 </div>
100
101 <div class="field">
102 <div class="label">
103 <label for="rhodecode_realm">${_('HTTP authentication realm')}:</label>
104 </div>
105 <div class="input">
106 ${h.text('rhodecode_realm',size=30)}
107 </div>
108 </div>
109
110 <div class="field">
111 <div class="label">
112 <label for="rhodecode_ga_code">${_('Google Analytics code')}:</label>
113 </div>
114 <div class="input">
115 ${h.text('rhodecode_ga_code',size=30)}
116 </div>
117 </div>
118
119 <div class="buttons">
120 ${h.submit('save',_('Save settings'),class_="ui-btn large")}
121 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
122 </div>
123 </div>
124 </div>
125 ${h.end_form()}
126
127 <h3>${_('Visualisation settings')}</h3>
128 ${h.form(url('admin_setting', setting_id='visual'),method='put')}
129 <div class="form">
130 <!-- fields -->
131
132 <div class="fields">
133 <div class="field">
134 <div class="label label-checkbox">
135 <label>${_('General')}:</label>
136 </div>
137 <div class="checkboxes">
138 <div class="checkbox">
139 ${h.checkbox('rhodecode_repository_fields','True')}
140 <label for="rhodecode_repository_fields">${_('Use repository extra fields')}</label>
141 </div>
142 <span class="help-block">${_('Allows storing additional customized fields per repository.')}</span>
143 <div class="checkbox">
144 ${h.checkbox('rhodecode_show_version','True')}
145 <label for="rhodecode_show_version">${_('Show RhodeCode version')}</label>
146 </div>
147 <span class="help-block">${_('Shows or hides displayed version of RhodeCode in the footer')}</span>
148 </div>
149 </div>
150 <div class="field">
151 <div class="label">
152 <label for="rhodecode_realm">${_('Dashboard items')}:</label>
153 </div>
154 <div class="input">
155 ${h.text('rhodecode_dashboard_items',size=5)}
156 <span class="help-block">${_('Number of items displayed in lightweight dashboard before pagination is shown.')}</span>
157 </div>
158 </div>
159 <div class="field">
160 <div class="label label-checkbox">
161 <label>${_('Icons')}:</label>
162 </div>
163 <div class="checkboxes">
164 <div class="checkbox">
165 ${h.checkbox('rhodecode_show_public_icon','True')}
166 <label for="rhodecode_show_public_icon">${_('Show public repo icon on repositories')}</label>
167 </div>
168 <div class="checkbox">
169 ${h.checkbox('rhodecode_show_private_icon','True')}
170 <label for="rhodecode_show_private_icon">${_('Show private repo icon on repositories')}</label>
171 </div>
172 <span class="help-block">${_('Show public/private icons next to repositories names')}</span>
173 </div>
174 </div>
175
176 <div class="field">
177 <div class="label label-checkbox">
178 <label>${_('Meta-Tagging')}:</label>
179 </div>
180 <div class="checkboxes">
181 <div class="checkbox">
182 ${h.checkbox('rhodecode_stylify_metatags','True')}
183 <label for="rhodecode_stylify_metatags">${_('Stylify recognised metatags:')}</label>
184 </div>
185 <div style="padding-left: 20px;">
186 <ul> <!-- Fix style here -->
187 <li>[featured] <span class="metatag" tag="featured">featured</span></li>
188 <li>[stale] <span class="metatag" tag="stale">stale</span></li>
189 <li>[dead] <span class="metatag" tag="dead">dead</span></li>
190 <li>[lang =&gt; lang] <span class="metatag" tag="lang" >lang</span></li>
191 <li>[license =&gt; License] <span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License" >License</a></span></li>
192 <li>[requires =&gt; Repo] <span class="metatag" tag="requires" >requires =&gt; <a href="#" >Repo</a></span></li>
193 <li>[recommends =&gt; Repo] <span class="metatag" tag="recommends" >recommends =&gt; <a href="#" >Repo</a></span></li>
194 <li>[see =&gt; URI] <span class="metatag" tag="see">see =&gt; <a href="#">URI</a> </span></li>
195 </ul>
196 </div>
197 </div>
198 </div>
199
200 <div class="buttons">
201 ${h.submit('save',_('Save settings'),class_="ui-btn large")}
202 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
203 </div>
204
205 </div>
206 </div>
207 ${h.end_form()}
208
209
210 <h3>${_('VCS settings')}</h3>
211 ${h.form(url('admin_setting', setting_id='vcs'),method='put')}
212 <div class="form">
213 <!-- fields -->
214
215 <div class="fields">
216
217 <div class="field">
218 <div class="label label-checkbox">
219 <label>${_('Web')}:</label>
220 </div>
221 <div class="checkboxes">
222 <div class="checkbox">
223 ${h.checkbox('web_push_ssl', 'True')}
224 <label for="web_push_ssl">${_('Require SSL for vcs operations')}</label>
225 </div>
226 <span class="help-block">${_('RhodeCode will require SSL for pushing or pulling. If SSL is missing it will return HTTP Error 406: Not Acceptable')}</span>
227 </div>
228 </div>
229
230 <div class="field">
231 <div class="label label-checkbox">
232 <label>${_('Hooks')}:</label>
233 </div>
234 <div class="checkboxes">
235 <div class="checkbox">
236 ${h.checkbox('hooks_changegroup_update','True')}
237 <label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label>
238 </div>
239 <div class="checkbox">
240 ${h.checkbox('hooks_changegroup_repo_size','True')}
241 <label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label>
242 </div>
243 <div class="checkbox">
244 ${h.checkbox('hooks_changegroup_push_logger','True')}
245 <label for="hooks_changegroup_push_logger">${_('Log user push commands')}</label>
246 </div>
247 <div class="checkbox">
248 ${h.checkbox('hooks_outgoing_pull_logger','True')}
249 <label for="hooks_outgoing_pull_logger">${_('Log user pull commands')}</label>
250 </div>
251 </div>
252 <div class="input" style="margin-top:10px">
253 ${h.link_to(_('Advanced setup'),url('admin_edit_setting',setting_id='hooks'))}
254 </div>
255 </div>
256 <div class="field">
257 <div class="label label-checkbox">
258 <label>${_('Mercurial Extensions')}:</label>
259 </div>
260 <div class="checkboxes">
261 <div class="checkbox">
262 ${h.checkbox('extensions_largefiles','True')}
263 <label for="extensions_largefiles">${_('Enable largefiles extension')}</label>
264 </div>
265 <div class="checkbox">
266 ${h.checkbox('extensions_hgsubversion','True')}
267 <label for="extensions_hgsubversion">${_('Enable hgsubversion extension')}</label>
268 </div>
269 <span class="help-block">${_('Requires hgsubversion library installed. Allows cloning from svn remote locations')}</span>
270 ##<div class="checkbox">
271 ## ${h.checkbox('extensions_hggit','True')}
272 ## <label for="extensions_hggit">${_('Enable hg-git extension')}</label>
273 ##</div>
274 ##<span class="help-block">${_('Requires hg-git library installed. Allows cloning from git remote locations')}</span>
275 </div>
276 </div>
277 %if c.visual.allow_repo_location_change:
278 <div class="field">
279 <div class="label">
280 <label for="paths_root_path">${_('Repositories location')}:</label>
281 </div>
282 <div class="input">
283 ${h.text('paths_root_path',size=30,readonly="readonly", class_="disabled")}
284 <span id="path_unlock" class="tooltip" style="cursor: pointer"
285 title="${h.tooltip(_('Click to unlock. You must restart RhodeCode in order to make this setting take effect.'))}">
286 ${_('Unlock')}
287 </span>
288 <span class="help-block">${_('Location where repositories are stored. After changing this value a restart, and rescan is required')}</span>
289 </div>
290 </div>
291 %else:
292 ## form still requires this but we cannot internally change it anyway
293 ${h.hidden('paths_root_path',size=30,readonly="readonly", class_="disabled")}
294 %endif
295 <div class="buttons">
296 ${h.submit('save',_('Save settings'),class_="ui-btn large")}
297 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
298 </div>
299 </div>
300 </div>
301 ${h.end_form()}
302
303 <script type="text/javascript">
304 YAHOO.util.Event.onDOMReady(function(){
305 YUE.on('path_unlock','click',function(){
306 YUD.get('paths_root_path').removeAttribute('readonly');
307 YUD.removeClass('paths_root_path', 'disabled')
308 });
309 });
310 </script>
311
312 <h3>${_('Test Email')}</h3>
313 ${h.form(url('admin_setting', setting_id='email'),method='put')}
314 <div class="form">
315 <!-- fields -->
316
317 <div class="fields">
318 <div class="field">
319 <div class="label">
320 <label for="test_email">${_('Email to')}:</label>
321 </div>
322 <div class="input">
323 ${h.text('test_email',size=30)}
324 </div>
325 </div>
326
327 <div class="buttons">
328 ${h.submit('send',_('Send'),class_="ui-btn large")}
329 </div>
330 </div>
331 </div>
332 ${h.end_form()}
333
334 <h3>${_('System Info and Packages')}</h3>
335 <div class="form">
336 <div>
337 <h5 id="expand_modules" style="cursor: pointer">&darr; ${_('Show')} &darr;</h5>
338 </div>
339 <div id="expand_modules_table" style="display:none">
340 <h5>Python - ${c.py_version}</h5>
341 <h5>System - ${c.platform}</h5>
342
343 <table class="table" style="margin:0px 0px 0px 20px">
344 <colgroup>
345 <col style="width:220px">
346 </colgroup>
347 <tbody>
348 %for key, value in c.modules:
349 <tr>
350 <th style="text-align: right;padding-right:5px;">${key}</th>
351 <td>${value}</td>
352 </tr>
353 %endfor
354 </tbody>
355 </table>
356 </div>
357 </div> 51 </div>
358 52
359 <script type="text/javascript"> 53 <div style="width:750px; float:left; padding: 10px 0px 0px 20px;margin: 0px 0px 0px 10px; border-left: 1px solid #DDDDDD">
360 YUE.on('expand_modules','click',function(e){ 54 <%include file="/admin/settings/settings_${c.active}.html"/>
361 YUD.setStyle('expand_modules_table','display',''); 55 </div>
362 YUD.setStyle('expand_modules','display','none'); 56 </div>
363 })
364 </script>
365 57
366 </div>
367 </%def> 58 </%def>