##// END OF EJS Templates
settings: 'Advanced setup' is a link to another form, it shouldn't look like a submit button
Mads Kiilerich -
r3572:db62c058 beta
parent child Browse files
Show More
@@ -1,347 +1,347
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 &raquo;
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 <span class="help-block">${_('Rescan repositories location for new repositories. Also deletes obsolete if `destroy` flag is checked ')}</span>
44 44 </div>
45 45 </div>
46 46
47 47 <div class="buttons">
48 48 ${h.submit('rescan',_('Rescan repositories'),class_="ui-btn large")}
49 49 </div>
50 50 </div>
51 51 </div>
52 52 ${h.end_form()}
53 53
54 54 <h3>${_('Whoosh indexing')}</h3>
55 55 ${h.form(url('admin_setting', setting_id='whoosh'),method='put')}
56 56 <div class="form">
57 57 <!-- fields -->
58 58
59 59 <div class="fields">
60 60 <div class="field">
61 61 <div class="label label-checkbox">
62 62 <label>${_('Index build option')}:</label>
63 63 </div>
64 64 <div class="checkboxes">
65 65 <div class="checkbox">
66 66 ${h.checkbox('full_index',True)}
67 67 <label for="full_index">${_('Build from scratch')}</label>
68 68 </div>
69 69 </div>
70 70 </div>
71 71
72 72 <div class="buttons">
73 73 ${h.submit('reindex',_('Reindex'),class_="ui-btn large")}
74 74 </div>
75 75 </div>
76 76 </div>
77 77 ${h.end_form()}
78 78
79 79 <h3>${_('Global application settings')}</h3>
80 80 ${h.form(url('admin_setting', setting_id='global'),method='put')}
81 81 <div class="form">
82 82 <!-- fields -->
83 83
84 84 <div class="fields">
85 85
86 86 <div class="field">
87 87 <div class="label">
88 88 <label for="rhodecode_title">${_('Site branding')}:</label>
89 89 </div>
90 90 <div class="input">
91 91 ${h.text('rhodecode_title',size=30)}
92 92 </div>
93 93 </div>
94 94
95 95 <div class="field">
96 96 <div class="label">
97 97 <label for="rhodecode_realm">${_('HTTP authentication realm')}:</label>
98 98 </div>
99 99 <div class="input">
100 100 ${h.text('rhodecode_realm',size=30)}
101 101 </div>
102 102 </div>
103 103
104 104 <div class="field">
105 105 <div class="label">
106 106 <label for="rhodecode_ga_code">${_('Google Analytics code')}:</label>
107 107 </div>
108 108 <div class="input">
109 109 ${h.text('rhodecode_ga_code',size=30)}
110 110 </div>
111 111 </div>
112 112
113 113 <div class="buttons">
114 114 ${h.submit('save',_('Save settings'),class_="ui-btn large")}
115 115 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
116 116 </div>
117 117 </div>
118 118 </div>
119 119 ${h.end_form()}
120 120
121 121 <h3>${_('Visualisation settings')}</h3>
122 122 ${h.form(url('admin_setting', setting_id='visual'),method='put')}
123 123 <div class="form">
124 124 <!-- fields -->
125 125
126 126 <div class="fields">
127 127 <div class="field">
128 128 <div class="label label-checkbox">
129 129 <label>${_('General')}:</label>
130 130 </div>
131 131 <div class="checkboxes">
132 132 <div class="checkbox">
133 133 ${h.checkbox('rhodecode_lightweight_dashboard','True')}
134 134 <label for="rhodecode_lightweight_dashboard">${_('Use lightweight dashboard')}</label>
135 135 </div>
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 </div>
143 143 </div>
144 144
145 145 <div class="field">
146 146 <div class="label label-checkbox">
147 147 <label>${_('Icons')}:</label>
148 148 </div>
149 149 <div class="checkboxes">
150 150 <div class="checkbox">
151 151 ${h.checkbox('rhodecode_show_public_icon','True')}
152 152 <label for="rhodecode_show_public_icon">${_('Show public repo icon on repositories')}</label>
153 153 </div>
154 154 <div class="checkbox">
155 155 ${h.checkbox('rhodecode_show_private_icon','True')}
156 156 <label for="rhodecode_show_private_icon">${_('Show private repo icon on repositories')}</label>
157 157 </div>
158 158 </div>
159 159 </div>
160 160
161 161 <div class="field">
162 162 <div class="label label-checkbox">
163 163 <label>${_('Meta-Tagging')}:</label>
164 164 </div>
165 165 <div class="checkboxes">
166 166 <div class="checkbox">
167 167 ${h.checkbox('rhodecode_stylify_metatags','True')}
168 168 <label for="rhodecode_stylify_metatags">${_('Stylify recognised metatags:')}</label>
169 169 </div>
170 170 <div style="padding-left: 20px;">
171 171 <ul> <!-- Fix style here -->
172 172 <li>[featured] <span class="metatag" tag="featured">featured</span></li>
173 173 <li>[stale] <span class="metatag" tag="stale">stale</span></li>
174 174 <li>[dead] <span class="metatag" tag="dead">dead</span></li>
175 175 <li>[lang =&gt; lang] <span class="metatag" tag="lang" >lang</span></li>
176 176 <li>[license =&gt; License] <span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License" >License</a></span></li>
177 177 <li>[requires =&gt; Repo] <span class="metatag" tag="requires" >requires =&gt; <a href="#" >Repo</a></span></li>
178 178 <li>[recommends =&gt; Repo] <span class="metatag" tag="recommends" >recommends =&gt; <a href="#" >Repo</a></span></li>
179 179 <li>[see =&gt; URI] <span class="metatag" tag="see">see =&gt; <a href="#">URI</a> </span></li>
180 180 </ul>
181 181 </div>
182 182 </div>
183 183 </div>
184 184
185 185 <div class="buttons">
186 186 ${h.submit('save',_('Save settings'),class_="ui-btn large")}
187 187 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
188 188 </div>
189 189
190 190 </div>
191 191 </div>
192 192 ${h.end_form()}
193 193
194 194
195 195 <h3>${_('VCS settings')}</h3>
196 196 ${h.form(url('admin_setting', setting_id='vcs'),method='put')}
197 197 <div class="form">
198 198 <!-- fields -->
199 199
200 200 <div class="fields">
201 201
202 202 <div class="field">
203 203 <div class="label label-checkbox">
204 204 <label>${_('Web')}:</label>
205 205 </div>
206 206 <div class="checkboxes">
207 207 <div class="checkbox">
208 208 ${h.checkbox('web_push_ssl', 'True')}
209 209 <label for="web_push_ssl">${_('Require SSL for vcs operations')}</label>
210 210 </div>
211 211 <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>
212 212 </div>
213 213 </div>
214 214
215 215 <div class="field">
216 216 <div class="label label-checkbox">
217 217 <label>${_('Hooks')}:</label>
218 218 </div>
219 219 <div class="checkboxes">
220 220 <div class="checkbox">
221 221 ${h.checkbox('hooks_changegroup_update','True')}
222 222 <label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label>
223 223 </div>
224 224 <div class="checkbox">
225 225 ${h.checkbox('hooks_changegroup_repo_size','True')}
226 226 <label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label>
227 227 </div>
228 228 <div class="checkbox">
229 229 ${h.checkbox('hooks_changegroup_push_logger','True')}
230 230 <label for="hooks_changegroup_push_logger">${_('Log user push commands')}</label>
231 231 </div>
232 232 <div class="checkbox">
233 233 ${h.checkbox('hooks_outgoing_pull_logger','True')}
234 234 <label for="hooks_outgoing_pull_logger">${_('Log user pull commands')}</label>
235 235 </div>
236 236 </div>
237 237 <div class="input" style="margin-top:10px">
238 ${h.link_to(_('Advanced setup'),url('admin_edit_setting',setting_id='hooks'),class_="ui-btn")}
238 ${h.link_to(_('Advanced setup'),url('admin_edit_setting',setting_id='hooks'))}
239 239 </div>
240 240 </div>
241 241 <div class="field">
242 242 <div class="label label-checkbox">
243 243 <label>${_('Mercurial Extensions')}:</label>
244 244 </div>
245 245 <div class="checkboxes">
246 246 <div class="checkbox">
247 247 ${h.checkbox('extensions_largefiles','True')}
248 248 <label for="extensions_largefiles">${_('Enable largefiles extension')}</label>
249 249 </div>
250 250 <div class="checkbox">
251 251 ${h.checkbox('extensions_hgsubversion','True')}
252 252 <label for="extensions_hgsubversion">${_('Enable hgsubversion extension')}</label>
253 253 </div>
254 254 <span class="help-block">${_('Requires hgsubversion library installed. Allows cloning from svn remote locations')}</span>
255 255 ##<div class="checkbox">
256 256 ## ${h.checkbox('extensions_hggit','True')}
257 257 ## <label for="extensions_hggit">${_('Enable hg-git extension')}</label>
258 258 ##</div>
259 259 ##<span class="help-block">${_('Requires hg-git library installed. Allows cloning from git remote locations')}</span>
260 260 </div>
261 261 </div>
262 262 <div class="field">
263 263 <div class="label">
264 264 <label for="paths_root_path">${_('Repositories location')}:</label>
265 265 </div>
266 266 <div class="input">
267 267 ${h.text('paths_root_path',size=30,readonly="readonly")}
268 268 <span id="path_unlock" class="tooltip"
269 269 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.'))}">
270 270 ${_('unlock')}
271 271 </span>
272 272 <span class="help-block">${_('Location where repositories are stored. After changing this value a restart, and rescan is required')}</span>
273 273 </div>
274 274 </div>
275 275
276 276 <div class="buttons">
277 277 ${h.submit('save',_('Save settings'),class_="ui-btn large")}
278 278 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
279 279 </div>
280 280 </div>
281 281 </div>
282 282 ${h.end_form()}
283 283
284 284 <script type="text/javascript">
285 285 YAHOO.util.Event.onDOMReady(function(){
286 286 YAHOO.util.Event.addListener('path_unlock','click',function(){
287 287 YAHOO.util.Dom.get('paths_root_path').removeAttribute('readonly');
288 288 });
289 289 });
290 290 </script>
291 291
292 292 <h3>${_('Test Email')}</h3>
293 293 ${h.form(url('admin_setting', setting_id='email'),method='put')}
294 294 <div class="form">
295 295 <!-- fields -->
296 296
297 297 <div class="fields">
298 298 <div class="field">
299 299 <div class="label">
300 300 <label for="test_email">${_('Email to')}:</label>
301 301 </div>
302 302 <div class="input">
303 303 ${h.text('test_email',size=30)}
304 304 </div>
305 305 </div>
306 306
307 307 <div class="buttons">
308 308 ${h.submit('send',_('Send'),class_="ui-btn large")}
309 309 </div>
310 310 </div>
311 311 </div>
312 312 ${h.end_form()}
313 313
314 314 <h3>${_('System Info and Packages')}</h3>
315 315 <div class="form">
316 316 <div>
317 317 <h5 id="expand_modules" style="cursor: pointer">&darr; ${_('Show')} &darr;</h5>
318 318 </div>
319 319 <div id="expand_modules_table" style="display:none">
320 320 <h5>Python - ${c.py_version}</h5>
321 321 <h5>System - ${c.platform}</h5>
322 322
323 323 <table class="table" style="margin:0px 0px 0px 20px">
324 324 <colgroup>
325 325 <col style="width:220px">
326 326 </colgroup>
327 327 <tbody>
328 328 %for key, value in c.modules:
329 329 <tr>
330 330 <th style="text-align: right;padding-right:5px;">${key}</th>
331 331 <td>${value}</td>
332 332 </tr>
333 333 %endfor
334 334 </tbody>
335 335 </table>
336 336 </div>
337 337 </div>
338 338
339 339 <script type="text/javascript">
340 340 YUE.on('expand_modules','click',function(e){
341 341 YUD.setStyle('expand_modules_table','display','');
342 342 YUD.setStyle('expand_modules','display','none');
343 343 })
344 344 </script>
345 345
346 346 </div>
347 347 </%def>
General Comments 0
You need to be logged in to leave comments. Login now