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