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