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