Show More
@@ -1,246 +1,249 | |||||
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'))} » ${_('Settings')} |
|
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Settings')} | |
10 | </%def> |
|
10 | </%def> | |
11 |
|
11 | |||
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
17 | <div class="box"> |
|
17 | <div class="box"> | |
18 | <!-- box / title --> |
|
18 | <!-- box / title --> | |
19 | <div class="title"> |
|
19 | <div class="title"> | |
20 | ${self.breadcrumbs()} |
|
20 | ${self.breadcrumbs()} | |
21 | </div> |
|
21 | </div> | |
22 | <!-- end box / title --> |
|
22 | <!-- end box / title --> | |
23 |
|
23 | |||
24 | <h3>${_('Remap and rescan repositories')}</h3> |
|
24 | <h3>${_('Remap and rescan repositories')}</h3> | |
25 | ${h.form(url('admin_setting', setting_id='mapping'),method='put')} |
|
25 | ${h.form(url('admin_setting', setting_id='mapping'),method='put')} | |
26 | <div class="form"> |
|
26 | <div class="form"> | |
27 | <!-- fields --> |
|
27 | <!-- fields --> | |
28 |
|
28 | |||
29 | <div class="fields"> |
|
29 | <div class="fields"> | |
30 | <div class="field"> |
|
30 | <div class="field"> | |
31 | <div class="label label-checkbox"> |
|
31 | <div class="label label-checkbox"> | |
32 | <label for="destroy">${_('rescan option')}:</label> |
|
32 | <label for="destroy">${_('rescan option')}:</label> | |
33 | </div> |
|
33 | </div> | |
34 | <div class="checkboxes"> |
|
34 | <div class="checkboxes"> | |
35 | <div class="checkbox"> |
|
35 | <div class="checkbox"> | |
36 | ${h.checkbox('destroy',True)} |
|
36 | ${h.checkbox('destroy',True)} | |
37 | <label for="destroy"> |
|
37 | <label for="destroy"> | |
38 | <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.'))}"> |
|
38 | <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.'))}"> | |
39 | ${_('destroy old data')}</span> </label> |
|
39 | ${_('destroy old data')}</span> </label> | |
40 | </div> |
|
40 | </div> | |
|
41 | <span class="help-block">${_('Rescan repositories location for new repositories. Also deletes obsolete if `destroy` flag is checked ')}</span> | |||
41 | </div> |
|
42 | </div> | |
42 | </div> |
|
43 | </div> | |
43 |
|
44 | |||
44 | <div class="buttons"> |
|
45 | <div class="buttons"> | |
45 | ${h.submit('rescan',_('Rescan repositories'),class_="ui-btn large")} |
|
46 | ${h.submit('rescan',_('Rescan repositories'),class_="ui-btn large")} | |
46 | </div> |
|
47 | </div> | |
47 | </div> |
|
48 | </div> | |
48 | </div> |
|
49 | </div> | |
49 | ${h.end_form()} |
|
50 | ${h.end_form()} | |
50 |
|
51 | |||
51 | <h3>${_('Whoosh indexing')}</h3> |
|
52 | <h3>${_('Whoosh indexing')}</h3> | |
52 | ${h.form(url('admin_setting', setting_id='whoosh'),method='put')} |
|
53 | ${h.form(url('admin_setting', setting_id='whoosh'),method='put')} | |
53 | <div class="form"> |
|
54 | <div class="form"> | |
54 | <!-- fields --> |
|
55 | <!-- fields --> | |
55 |
|
56 | |||
56 | <div class="fields"> |
|
57 | <div class="fields"> | |
57 | <div class="field"> |
|
58 | <div class="field"> | |
58 | <div class="label label-checkbox"> |
|
59 | <div class="label label-checkbox"> | |
59 | <label>${_('index build option')}:</label> |
|
60 | <label>${_('index build option')}:</label> | |
60 | </div> |
|
61 | </div> | |
61 | <div class="checkboxes"> |
|
62 | <div class="checkboxes"> | |
62 | <div class="checkbox"> |
|
63 | <div class="checkbox"> | |
63 | ${h.checkbox('full_index',True)} |
|
64 | ${h.checkbox('full_index',True)} | |
64 | <label for="full_index">${_('build from scratch')}</label> |
|
65 | <label for="full_index">${_('build from scratch')}</label> | |
65 | </div> |
|
66 | </div> | |
66 | </div> |
|
67 | </div> | |
67 | </div> |
|
68 | </div> | |
68 |
|
69 | |||
69 | <div class="buttons"> |
|
70 | <div class="buttons"> | |
70 | ${h.submit('reindex',_('Reindex'),class_="ui-btn large")} |
|
71 | ${h.submit('reindex',_('Reindex'),class_="ui-btn large")} | |
71 | </div> |
|
72 | </div> | |
72 | </div> |
|
73 | </div> | |
73 | </div> |
|
74 | </div> | |
74 | ${h.end_form()} |
|
75 | ${h.end_form()} | |
75 |
|
76 | |||
76 | <h3>${_('Global application settings')}</h3> |
|
77 | <h3>${_('Global application settings')}</h3> | |
77 | ${h.form(url('admin_setting', setting_id='global'),method='put')} |
|
78 | ${h.form(url('admin_setting', setting_id='global'),method='put')} | |
78 | <div class="form"> |
|
79 | <div class="form"> | |
79 | <!-- fields --> |
|
80 | <!-- fields --> | |
80 |
|
81 | |||
81 | <div class="fields"> |
|
82 | <div class="fields"> | |
82 |
|
83 | |||
83 | <div class="field"> |
|
84 | <div class="field"> | |
84 | <div class="label"> |
|
85 | <div class="label"> | |
85 | <label for="rhodecode_title">${_('Application name')}:</label> |
|
86 | <label for="rhodecode_title">${_('Application name')}:</label> | |
86 | </div> |
|
87 | </div> | |
87 | <div class="input"> |
|
88 | <div class="input"> | |
88 | ${h.text('rhodecode_title',size=30)} |
|
89 | ${h.text('rhodecode_title',size=30)} | |
89 | </div> |
|
90 | </div> | |
90 | </div> |
|
91 | </div> | |
91 |
|
92 | |||
92 | <div class="field"> |
|
93 | <div class="field"> | |
93 | <div class="label"> |
|
94 | <div class="label"> | |
94 | <label for="rhodecode_realm">${_('Realm text')}:</label> |
|
95 | <label for="rhodecode_realm">${_('Realm text')}:</label> | |
95 | </div> |
|
96 | </div> | |
96 | <div class="input"> |
|
97 | <div class="input"> | |
97 | ${h.text('rhodecode_realm',size=30)} |
|
98 | ${h.text('rhodecode_realm',size=30)} | |
98 | </div> |
|
99 | </div> | |
99 | </div> |
|
100 | </div> | |
100 |
|
101 | |||
101 | <div class="field"> |
|
102 | <div class="field"> | |
102 | <div class="label"> |
|
103 | <div class="label"> | |
103 | <label for="rhodecode_ga_code">${_('GA code')}:</label> |
|
104 | <label for="rhodecode_ga_code">${_('GA code')}:</label> | |
104 | </div> |
|
105 | </div> | |
105 | <div class="input"> |
|
106 | <div class="input"> | |
106 | ${h.text('rhodecode_ga_code',size=30)} |
|
107 | ${h.text('rhodecode_ga_code',size=30)} | |
107 | </div> |
|
108 | </div> | |
108 | </div> |
|
109 | </div> | |
109 |
|
110 | |||
110 | <div class="buttons"> |
|
111 | <div class="buttons"> | |
111 | ${h.submit('save',_('Save settings'),class_="ui-btn large")} |
|
112 | ${h.submit('save',_('Save settings'),class_="ui-btn large")} | |
112 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
|
113 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} | |
113 | </div> |
|
114 | </div> | |
114 | </div> |
|
115 | </div> | |
115 | </div> |
|
116 | </div> | |
116 | ${h.end_form()} |
|
117 | ${h.end_form()} | |
117 |
|
118 | |||
118 | <h3>${_('VCS settings')}</h3> |
|
119 | <h3>${_('VCS settings')}</h3> | |
119 | ${h.form(url('admin_setting', setting_id='vcs'),method='put')} |
|
120 | ${h.form(url('admin_setting', setting_id='vcs'),method='put')} | |
120 | <div class="form"> |
|
121 | <div class="form"> | |
121 | <!-- fields --> |
|
122 | <!-- fields --> | |
122 |
|
123 | |||
123 | <div class="fields"> |
|
124 | <div class="fields"> | |
124 |
|
125 | |||
125 | <div class="field"> |
|
126 | <div class="field"> | |
126 | <div class="label label-checkbox"> |
|
127 | <div class="label label-checkbox"> | |
127 | <label>${_('Web')}:</label> |
|
128 | <label>${_('Web')}:</label> | |
128 | </div> |
|
129 | </div> | |
129 | <div class="checkboxes"> |
|
130 | <div class="checkboxes"> | |
130 | <div class="checkbox"> |
|
131 | <div class="checkbox"> | |
131 | ${h.checkbox('web_push_ssl','true')} |
|
132 | ${h.checkbox('web_push_ssl','true')} | |
132 | <label for="web_push_ssl">${_('require ssl for vcs operations')}</label> |
|
133 | <label for="web_push_ssl">${_('require ssl for vcs operations')}</label> | |
133 | </div> |
|
134 | </div> | |
|
135 | <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> | |||
134 | </div> |
|
136 | </div> | |
135 | </div> |
|
137 | </div> | |
136 |
|
138 | |||
137 | <div class="field"> |
|
139 | <div class="field"> | |
138 | <div class="label label-checkbox"> |
|
140 | <div class="label label-checkbox"> | |
139 | <label>${_('Hooks')}:</label> |
|
141 | <label>${_('Hooks')}:</label> | |
140 | </div> |
|
142 | </div> | |
141 | <div class="checkboxes"> |
|
143 | <div class="checkboxes"> | |
142 | <div class="checkbox"> |
|
144 | <div class="checkbox"> | |
143 | ${h.checkbox('hooks_changegroup_update','True')} |
|
145 | ${h.checkbox('hooks_changegroup_update','True')} | |
144 | <label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label> |
|
146 | <label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label> | |
145 | </div> |
|
147 | </div> | |
146 | <div class="checkbox"> |
|
148 | <div class="checkbox"> | |
147 | ${h.checkbox('hooks_changegroup_repo_size','True')} |
|
149 | ${h.checkbox('hooks_changegroup_repo_size','True')} | |
148 | <label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label> |
|
150 | <label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label> | |
149 | </div> |
|
151 | </div> | |
150 | <div class="checkbox"> |
|
152 | <div class="checkbox"> | |
151 | ${h.checkbox('hooks_changegroup_push_logger','True')} |
|
153 | ${h.checkbox('hooks_changegroup_push_logger','True')} | |
152 | <label for="hooks_changegroup_push_logger">${_('Log user push commands')}</label> |
|
154 | <label for="hooks_changegroup_push_logger">${_('Log user push commands')}</label> | |
153 | </div> |
|
155 | </div> | |
154 | <div class="checkbox"> |
|
156 | <div class="checkbox"> | |
155 | ${h.checkbox('hooks_preoutgoing_pull_logger','True')} |
|
157 | ${h.checkbox('hooks_preoutgoing_pull_logger','True')} | |
156 | <label for="hooks_preoutgoing_pull_logger">${_('Log user pull commands')}</label> |
|
158 | <label for="hooks_preoutgoing_pull_logger">${_('Log user pull commands')}</label> | |
157 | </div> |
|
159 | </div> | |
158 | </div> |
|
160 | </div> | |
159 | <div class="input" style="margin-top:10px"> |
|
161 | <div class="input" style="margin-top:10px"> | |
160 | ${h.link_to(_('advanced setup'),url('admin_edit_setting',setting_id='hooks'),class_="ui-btn")} |
|
162 | ${h.link_to(_('advanced setup'),url('admin_edit_setting',setting_id='hooks'),class_="ui-btn")} | |
161 | </div> |
|
163 | </div> | |
162 | </div> |
|
164 | </div> | |
163 | <div class="field"> |
|
165 | <div class="field"> | |
164 | <div class="label"> |
|
166 | <div class="label"> | |
165 | <label for="paths_root_path">${_('Repositories location')}:</label> |
|
167 | <label for="paths_root_path">${_('Repositories location')}:</label> | |
166 | </div> |
|
168 | </div> | |
167 | <div class="input"> |
|
169 | <div class="input"> | |
168 | ${h.text('paths_root_path',size=30,readonly="readonly")} |
|
170 | ${h.text('paths_root_path',size=30,readonly="readonly")} | |
169 | <span id="path_unlock" class="tooltip" |
|
171 | <span id="path_unlock" class="tooltip" | |
170 | 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.'))}"> |
|
172 | 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.'))}"> | |
171 | ${_('unlock')}</span> |
|
173 | ${_('unlock')}</span> | |
|
174 | <span class="help-block">${_('Location where repositories are stored. After changing this value a restart, and rescan is required')}</span> | |||
172 | </div> |
|
175 | </div> | |
173 | </div> |
|
176 | </div> | |
174 |
|
177 | |||
175 | <div class="buttons"> |
|
178 | <div class="buttons"> | |
176 | ${h.submit('save',_('Save settings'),class_="ui-btn large")} |
|
179 | ${h.submit('save',_('Save settings'),class_="ui-btn large")} | |
177 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
|
180 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} | |
178 | </div> |
|
181 | </div> | |
179 | </div> |
|
182 | </div> | |
180 | </div> |
|
183 | </div> | |
181 | ${h.end_form()} |
|
184 | ${h.end_form()} | |
182 |
|
185 | |||
183 | <script type="text/javascript"> |
|
186 | <script type="text/javascript"> | |
184 | YAHOO.util.Event.onDOMReady(function(){ |
|
187 | YAHOO.util.Event.onDOMReady(function(){ | |
185 | YAHOO.util.Event.addListener('path_unlock','click',function(){ |
|
188 | YAHOO.util.Event.addListener('path_unlock','click',function(){ | |
186 | YAHOO.util.Dom.get('paths_root_path').removeAttribute('readonly'); |
|
189 | YAHOO.util.Dom.get('paths_root_path').removeAttribute('readonly'); | |
187 | }); |
|
190 | }); | |
188 | }); |
|
191 | }); | |
189 | </script> |
|
192 | </script> | |
190 |
|
193 | |||
191 | <h3>${_('Test Email')}</h3> |
|
194 | <h3>${_('Test Email')}</h3> | |
192 | ${h.form(url('admin_setting', setting_id='email'),method='put')} |
|
195 | ${h.form(url('admin_setting', setting_id='email'),method='put')} | |
193 | <div class="form"> |
|
196 | <div class="form"> | |
194 | <!-- fields --> |
|
197 | <!-- fields --> | |
195 |
|
198 | |||
196 | <div class="fields"> |
|
199 | <div class="fields"> | |
197 | <div class="field"> |
|
200 | <div class="field"> | |
198 | <div class="label"> |
|
201 | <div class="label"> | |
199 | <label for="test_email">${_('Email to')}:</label> |
|
202 | <label for="test_email">${_('Email to')}:</label> | |
200 | </div> |
|
203 | </div> | |
201 | <div class="input"> |
|
204 | <div class="input"> | |
202 | ${h.text('test_email',size=30)} |
|
205 | ${h.text('test_email',size=30)} | |
203 | </div> |
|
206 | </div> | |
204 | </div> |
|
207 | </div> | |
205 |
|
208 | |||
206 | <div class="buttons"> |
|
209 | <div class="buttons"> | |
207 | ${h.submit('send',_('Send'),class_="ui-btn large")} |
|
210 | ${h.submit('send',_('Send'),class_="ui-btn large")} | |
208 | </div> |
|
211 | </div> | |
209 | </div> |
|
212 | </div> | |
210 | </div> |
|
213 | </div> | |
211 | ${h.end_form()} |
|
214 | ${h.end_form()} | |
212 |
|
215 | |||
213 | <h3>${_('System Info and Packages')}</h3> |
|
216 | <h3>${_('System Info and Packages')}</h3> | |
214 | <div class="form"> |
|
217 | <div class="form"> | |
215 | <div> |
|
218 | <div> | |
216 | <h5 id="expand_modules" style="cursor: pointer">↓ ${_('show')} ↓</h5> |
|
219 | <h5 id="expand_modules" style="cursor: pointer">↓ ${_('show')} ↓</h5> | |
217 | </div> |
|
220 | </div> | |
218 | <div id="expand_modules_table" style="display:none"> |
|
221 | <div id="expand_modules_table" style="display:none"> | |
219 | <h5>Python - ${c.py_version}</h5> |
|
222 | <h5>Python - ${c.py_version}</h5> | |
220 | <h5>System - ${c.platform}</h5> |
|
223 | <h5>System - ${c.platform}</h5> | |
221 |
|
224 | |||
222 | <table class="table" style="margin:0px 0px 0px 20px"> |
|
225 | <table class="table" style="margin:0px 0px 0px 20px"> | |
223 | <colgroup> |
|
226 | <colgroup> | |
224 | <col style="width:220px"> |
|
227 | <col style="width:220px"> | |
225 | </colgroup> |
|
228 | </colgroup> | |
226 | <tbody> |
|
229 | <tbody> | |
227 | %for key, value in c.modules: |
|
230 | %for key, value in c.modules: | |
228 | <tr> |
|
231 | <tr> | |
229 | <th style="text-align: right;padding-right:5px;">${key}</th> |
|
232 | <th style="text-align: right;padding-right:5px;">${key}</th> | |
230 | <td>${value}</td> |
|
233 | <td>${value}</td> | |
231 | </tr> |
|
234 | </tr> | |
232 | %endfor |
|
235 | %endfor | |
233 | </tbody> |
|
236 | </tbody> | |
234 | </table> |
|
237 | </table> | |
235 | </div> |
|
238 | </div> | |
236 | </div> |
|
239 | </div> | |
237 |
|
240 | |||
238 | <script type="text/javascript"> |
|
241 | <script type="text/javascript"> | |
239 | YUE.on('expand_modules','click',function(e){ |
|
242 | YUE.on('expand_modules','click',function(e){ | |
240 | YUD.setStyle('expand_modules_table','display',''); |
|
243 | YUD.setStyle('expand_modules_table','display',''); | |
241 | YUD.setStyle('expand_modules','display','none'); |
|
244 | YUD.setStyle('expand_modules','display','none'); | |
242 | }) |
|
245 | }) | |
243 | </script> |
|
246 | </script> | |
244 |
|
247 | |||
245 | </div> |
|
248 | </div> | |
246 | </%def> |
|
249 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now