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