Show More
@@ -1,291 +1,291 | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Edit repository')} ${c.repo_info.repo_name} - ${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 | » |
|
11 | 11 | ${h.link_to(_('Repositories'),h.url('repos'))} |
|
12 | 12 | » |
|
13 | 13 | ${_('edit')} » ${h.link_to(c.repo_info.just_name,h.url('summary_home',repo_name=c.repo_name))} |
|
14 | 14 | </%def> |
|
15 | 15 | |
|
16 | 16 | <%def name="page_nav()"> |
|
17 | 17 | ${self.menu('admin')} |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | 20 | <%def name="main()"> |
|
21 | 21 | <div class="box box-left"> |
|
22 | 22 | <!-- box / title --> |
|
23 | 23 | <div class="title"> |
|
24 | 24 | ${self.breadcrumbs()} |
|
25 | 25 | </div> |
|
26 | 26 | ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='put')} |
|
27 | 27 | <div class="form"> |
|
28 | 28 | <!-- fields --> |
|
29 | 29 | <div class="fields"> |
|
30 | 30 | <div class="field"> |
|
31 | 31 | <div class="label"> |
|
32 | 32 | <label for="repo_name">${_('Name')}:</label> |
|
33 | 33 | </div> |
|
34 | 34 | <div class="input"> |
|
35 | 35 | ${h.text('repo_name',class_="medium")} |
|
36 | 36 | </div> |
|
37 | 37 | </div> |
|
38 | 38 | <div class="field"> |
|
39 | 39 | <div class="label"> |
|
40 | 40 | <label for="clone_uri">${_('Clone uri')}:</label> |
|
41 | 41 | </div> |
|
42 | 42 | <div class="input"> |
|
43 | 43 | ${h.text('clone_uri',class_="medium")} |
|
44 | 44 | <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> |
|
45 | 45 | </div> |
|
46 | 46 | </div> |
|
47 | 47 | <div class="field"> |
|
48 | 48 | <div class="label"> |
|
49 | 49 | <label for="repo_group">${_('Repository group')}:</label> |
|
50 | 50 | </div> |
|
51 | 51 | <div class="input"> |
|
52 | 52 | ${h.select('repo_group','',c.repo_groups,class_="medium")} |
|
53 | 53 | <span class="help-block">${_('Optional select a group to put this repository into.')}</span> |
|
54 | 54 | </div> |
|
55 | 55 | </div> |
|
56 | 56 | <div class="field"> |
|
57 | 57 | <div class="label"> |
|
58 | 58 | <label for="repo_type">${_('Type')}:</label> |
|
59 | 59 | </div> |
|
60 | 60 | <div class="input"> |
|
61 | 61 | ${h.select('repo_type','hg',c.backends,class_="medium")} |
|
62 | 62 | </div> |
|
63 | 63 | </div> |
|
64 | 64 | <div class="field"> |
|
65 | 65 | <div class="label"> |
|
66 | 66 | <label for="repo_landing_rev">${_('Landing revision')}:</label> |
|
67 | 67 | </div> |
|
68 | 68 | <div class="input"> |
|
69 | 69 | ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")} |
|
70 | 70 | <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> |
|
71 | 71 | </div> |
|
72 | 72 | </div> |
|
73 | 73 | <div class="field"> |
|
74 | 74 | <div class="label label-textarea"> |
|
75 | 75 | <label for="repo_description">${_('Description')}:</label> |
|
76 | 76 | </div> |
|
77 | 77 | <div class="textarea text-area editor"> |
|
78 | 78 | ${h.textarea('repo_description')} |
|
79 | 79 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
|
80 | 80 | </div> |
|
81 | 81 | </div> |
|
82 | 82 | |
|
83 | 83 | <div class="field"> |
|
84 | 84 | <div class="label label-checkbox"> |
|
85 | 85 | <label for="repo_private">${_('Private repository')}:</label> |
|
86 | 86 | </div> |
|
87 | 87 | <div class="checkboxes"> |
|
88 | 88 | ${h.checkbox('repo_private',value="True")} |
|
89 | 89 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
|
90 | 90 | </div> |
|
91 | 91 | </div> |
|
92 | 92 | <div class="field"> |
|
93 | 93 | <div class="label label-checkbox"> |
|
94 | 94 | <label for="repo_enable_statistics">${_('Enable statistics')}:</label> |
|
95 | 95 | </div> |
|
96 | 96 | <div class="checkboxes"> |
|
97 | 97 | ${h.checkbox('repo_enable_statistics',value="True")} |
|
98 | 98 | <span class="help-block">${_('Enable statistics window on summary page.')}</span> |
|
99 | 99 | </div> |
|
100 | 100 | </div> |
|
101 | 101 | <div class="field"> |
|
102 | 102 | <div class="label label-checkbox"> |
|
103 | 103 | <label for="repo_enable_downloads">${_('Enable downloads')}:</label> |
|
104 | 104 | </div> |
|
105 | 105 | <div class="checkboxes"> |
|
106 | 106 | ${h.checkbox('repo_enable_downloads',value="True")} |
|
107 | 107 | <span class="help-block">${_('Enable download menu on summary page.')}</span> |
|
108 | 108 | </div> |
|
109 | 109 | </div> |
|
110 | 110 | <div class="field"> |
|
111 | 111 | <div class="label label-checkbox"> |
|
112 | 112 | <label for="repo_enable_locking">${_('Enable locking')}:</label> |
|
113 | 113 | </div> |
|
114 | 114 | <div class="checkboxes"> |
|
115 | 115 | ${h.checkbox('repo_enable_locking',value="True")} |
|
116 | 116 | <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span> |
|
117 | 117 | </div> |
|
118 | 118 | </div> |
|
119 | 119 | <div class="field"> |
|
120 | 120 | <div class="label"> |
|
121 | 121 | <label for="user">${_('Owner')}:</label> |
|
122 | 122 | </div> |
|
123 | 123 | <div class="input input-medium ac"> |
|
124 | 124 | <div class="perm_ac"> |
|
125 | 125 | ${h.text('user',class_='yui-ac-input')} |
|
126 | 126 | <span class="help-block">${_('Change owner of this repository.')}</span> |
|
127 | 127 | <div id="owner_container"></div> |
|
128 | 128 | </div> |
|
129 | 129 | </div> |
|
130 | 130 | </div> |
|
131 | 131 | |
|
132 | 132 | <div class="field"> |
|
133 | 133 | <div class="label"> |
|
134 | 134 | <label for="input">${_('Permissions')}:</label> |
|
135 | 135 | </div> |
|
136 | 136 | <div class="input"> |
|
137 | 137 | <%include file="repo_edit_perms.html"/> |
|
138 | 138 | </div> |
|
139 | 139 | |
|
140 | 140 | <div class="buttons"> |
|
141 | 141 | ${h.submit('save',_('Save'),class_="ui-btn large")} |
|
142 | 142 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
|
143 | 143 | </div> |
|
144 | 144 | </div> |
|
145 | 145 | </div> |
|
146 | 146 | </div> |
|
147 | 147 | ${h.end_form()} |
|
148 | 148 | </div> |
|
149 | 149 | |
|
150 | 150 | <div class="box box-right"> |
|
151 | 151 | <div class="title"> |
|
152 | 152 | <h5>${_('Administration')}</h5> |
|
153 | 153 | </div> |
|
154 | 154 | |
|
155 | 155 | <h3>${_('Statistics')}</h3> |
|
156 | 156 | ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} |
|
157 | 157 | <div class="form"> |
|
158 | 158 | <div class="fields"> |
|
159 | 159 | ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} |
|
160 | 160 | <div class="field" style="border:none;color:#888"> |
|
161 | 161 | <ul> |
|
162 | 162 | <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li> |
|
163 | 163 | <li>${_('Stats gathered')}: ${c.stats_percentage}%</li> |
|
164 | 164 | </ul> |
|
165 | 165 | </div> |
|
166 | 166 | </div> |
|
167 | 167 | </div> |
|
168 | 168 | ${h.end_form()} |
|
169 | 169 | |
|
170 | 170 | %if c.repo_info.clone_uri: |
|
171 | 171 | <h3>${_('Remote')}</h3> |
|
172 | 172 | ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} |
|
173 | 173 | <div class="form"> |
|
174 | 174 | <div class="fields"> |
|
175 | 175 | ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="ui-btn",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
|
176 | 176 | <div class="field" style="border:none"> |
|
177 | 177 | <ul> |
|
178 | 178 | <li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li> |
|
179 | 179 | </ul> |
|
180 | 180 | </div> |
|
181 | 181 | </div> |
|
182 | 182 | </div> |
|
183 | 183 | ${h.end_form()} |
|
184 | 184 | %endif |
|
185 | 185 | |
|
186 | 186 | <h3>${_('Cache')}</h3> |
|
187 | 187 | ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} |
|
188 | 188 | <div class="form"> |
|
189 | 189 | <div class="fields"> |
|
190 | 190 | ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} |
|
191 | 191 | <div class="field" style="border:none;color:#888"> |
|
192 | 192 | <ul> |
|
193 | 193 | <li>${_('Manually invalidate cache for this repository. On first access repository will be cached again')} |
|
194 | 194 | </li> |
|
195 | 195 | </ul> |
|
196 | 196 | </div> |
|
197 | 197 | <div class="field" style="border:none;"> |
|
198 | 198 | ${_('List of cached values')} |
|
199 | 199 | <table> |
|
200 | 200 | <tr> |
|
201 | 201 | <th>${_('Prefix')}</th> |
|
202 | 202 | <th>${_('Key')}</th> |
|
203 | 203 | <th>${_('Active')}</th> |
|
204 | 204 | </tr> |
|
205 | 205 | %for cache in c.repo_info.cache_keys: |
|
206 | 206 | <tr> |
|
207 | 207 | <td>${cache.prefix or '-'}</td> |
|
208 | 208 | <td>${cache.cache_key}</td> |
|
209 | 209 | <td>${h.bool2icon(cache.cache_active)}</td> |
|
210 | 210 | </tr> |
|
211 | 211 | %endfor |
|
212 | 212 | </table> |
|
213 | 213 | </div> |
|
214 | 214 | </div> |
|
215 | 215 | </div> |
|
216 | 216 | ${h.end_form()} |
|
217 | 217 | |
|
218 | 218 | <h3>${_('Public journal')}</h3> |
|
219 | 219 | ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} |
|
220 | 220 | <div class="form"> |
|
221 | 221 | ${h.hidden('auth_token',str(h.get_token()))} |
|
222 | 222 | <div class="field"> |
|
223 | 223 | %if c.in_public_journal: |
|
224 | 224 | ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")} |
|
225 | 225 | %else: |
|
226 | 226 | ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")} |
|
227 | 227 | %endif |
|
228 | 228 | </div> |
|
229 | 229 | <div class="field" style="border:none;color:#888"> |
|
230 | 230 | <ul> |
|
231 | 231 | <li>${_('All actions made on this repository will be accessible to everyone in public journal')} |
|
232 | 232 | </li> |
|
233 | 233 | </ul> |
|
234 | 234 | </div> |
|
235 | 235 | </div> |
|
236 | 236 | ${h.end_form()} |
|
237 | 237 | |
|
238 | 238 | <h3>${_('Locking')}</h3> |
|
239 | 239 | ${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')} |
|
240 | 240 | <div class="form"> |
|
241 | 241 | <div class="fields"> |
|
242 | 242 | %if c.repo_info.locked[0]: |
|
243 | 243 | ${h.submit('set_unlock' ,_('Unlock locked repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to unlock repository')+"');")} |
|
244 | 244 | ${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} |
|
245 | 245 | %else: |
|
246 | 246 | ${h.submit('set_lock',_('lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")} |
|
247 | 247 | ${_('Repository is not locked')} |
|
248 | 248 | %endif |
|
249 | 249 | </div> |
|
250 | 250 | <div class="field" style="border:none;color:#888"> |
|
251 | 251 | <ul> |
|
252 | 252 | <li>${_('Force locking on repository. Works only when anonymous access is disabled')} |
|
253 | 253 | </li> |
|
254 | 254 | </ul> |
|
255 | 255 | </div> |
|
256 | 256 | </div> |
|
257 | 257 | ${h.end_form()} |
|
258 | 258 | |
|
259 | 259 | <h3>${_('Set as fork of')}</h3> |
|
260 | 260 | ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} |
|
261 | 261 | <div class="form"> |
|
262 | 262 | <div class="fields"> |
|
263 | 263 | ${h.select('id_fork_of','',c.repos_list,class_="medium")} |
|
264 | 264 | ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)} |
|
265 | 265 | </div> |
|
266 | 266 | <div class="field" style="border:none;color:#888"> |
|
267 | 267 | <ul> |
|
268 | 268 | <li>${_('''Manually set this repository as a fork of another from the list''')}</li> |
|
269 | 269 | </ul> |
|
270 | 270 | </div> |
|
271 | 271 | </div> |
|
272 | 272 | ${h.end_form()} |
|
273 | 273 | |
|
274 | 274 | <h3>${_('Delete')}</h3> |
|
275 | 275 | ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} |
|
276 | 276 | <div class="form"> |
|
277 | 277 | <div class="fields"> |
|
278 | 278 | ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} |
|
279 | 279 | </div> |
|
280 | 280 | <div class="field" style="border:none;color:#888"> |
|
281 | 281 | <ul> |
|
282 | 282 | <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. |
|
283 | If you need fully delete it from filesystem please do it manually''')} | |
|
283 | If you need fully delete it from file system please do it manually''')} | |
|
284 | 284 | </li> |
|
285 | 285 | </ul> |
|
286 | 286 | </div> |
|
287 | 287 | </div> |
|
288 | 288 | ${h.end_form()} |
|
289 | 289 | </div> |
|
290 | 290 | |
|
291 | 291 | </%def> |
@@ -1,101 +1,124 | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('%s Settings') % c.repo_name} - ${c.rhodecode_name} |
|
6 | 6 | </%def> |
|
7 | 7 | |
|
8 | 8 | <%def name="breadcrumbs_links()"> |
|
9 | 9 | ${h.link_to(_(u'Home'),h.url('/'))} |
|
10 | 10 | » |
|
11 | 11 | ${h.link_to(c.repo_info.repo_name,h.url('summary_home',repo_name=c.repo_info.repo_name))} |
|
12 | 12 | » |
|
13 | 13 | ${_('Settings')} |
|
14 | 14 | </%def> |
|
15 | 15 | |
|
16 | 16 | <%def name="page_nav()"> |
|
17 | 17 | ${self.menu('settings')} |
|
18 | 18 | </%def> |
|
19 | 19 | <%def name="main()"> |
|
20 | 20 | <div class="box"> |
|
21 | 21 | <!-- box / title --> |
|
22 | 22 | <div class="title"> |
|
23 | 23 | ${self.breadcrumbs()} |
|
24 | 24 | </div> |
|
25 | 25 | ${h.form(url('repo_settings_update', repo_name=c.repo_info.repo_name),method='put')} |
|
26 | 26 | <div class="form"> |
|
27 | 27 | <!-- fields --> |
|
28 | 28 | <div class="fields"> |
|
29 | 29 | <div class="field"> |
|
30 | 30 | <div class="label"> |
|
31 | 31 | <label for="repo_name">${_('Name')}:</label> |
|
32 | 32 | </div> |
|
33 | 33 | <div class="input input-medium"> |
|
34 | 34 | ${h.text('repo_name',class_="small")} |
|
35 | 35 | </div> |
|
36 | 36 | </div> |
|
37 | 37 | <div class="field"> |
|
38 | 38 | <div class="label"> |
|
39 | 39 | <label for="clone_uri">${_('Clone uri')}:</label> |
|
40 | 40 | </div> |
|
41 | 41 | <div class="input"> |
|
42 | 42 | ${h.text('clone_uri',class_="medium")} |
|
43 | 43 | <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> |
|
44 | 44 | </div> |
|
45 | 45 | </div> |
|
46 | 46 | <div class="field"> |
|
47 | 47 | <div class="label"> |
|
48 | 48 | <label for="repo_group">${_('Repository group')}:</label> |
|
49 | 49 | </div> |
|
50 | 50 | <div class="input"> |
|
51 | 51 | ${h.select('repo_group','',c.repo_groups,class_="medium")} |
|
52 | 52 | <span class="help-block">${_('Optional select a group to put this repository into.')}</span> |
|
53 | 53 | </div> |
|
54 | 54 | </div> |
|
55 | 55 | <div class="field"> |
|
56 | 56 | <div class="label"> |
|
57 | 57 | <label for="landing_rev">${_('Landing revision')}:</label> |
|
58 | 58 | </div> |
|
59 | 59 | <div class="input"> |
|
60 | 60 | ${h.select('landing_rev','',c.landing_revs,class_="medium")} |
|
61 | 61 | <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> |
|
62 | 62 | </div> |
|
63 | 63 | </div> |
|
64 | 64 | <div class="field"> |
|
65 | 65 | <div class="label label-textarea"> |
|
66 | 66 | <label for="description">${_('Description')}:</label> |
|
67 | 67 | </div> |
|
68 | 68 | <div class="textarea text-area editor"> |
|
69 | 69 | ${h.textarea('description')} |
|
70 | 70 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
|
71 | 71 | </div> |
|
72 | 72 | </div> |
|
73 | 73 | |
|
74 | 74 | <div class="field"> |
|
75 | 75 | <div class="label label-checkbox"> |
|
76 | 76 | <label for="private">${_('Private repository')}:</label> |
|
77 | 77 | </div> |
|
78 | 78 | <div class="checkboxes"> |
|
79 | 79 | ${h.checkbox('private',value="True")} |
|
80 | 80 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
|
81 | 81 | </div> |
|
82 | 82 | </div> |
|
83 | 83 | |
|
84 | 84 | <div class="field"> |
|
85 | 85 | <div class="label"> |
|
86 | 86 | <label for="">${_('Permissions')}:</label> |
|
87 | 87 | </div> |
|
88 | 88 | <div class="input"> |
|
89 | 89 | <%include file="../admin/repos/repo_edit_perms.html"/> |
|
90 | 90 | </div> |
|
91 | ||
|
91 | </div> | |
|
92 | ||
|
93 | <div class="field"> | |
|
94 | <div class="label"> | |
|
95 | <label for="">${_('Remove repo')}:</label> | |
|
96 | </div> | |
|
97 | <div class="checkboxes"> | |
|
98 | ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')} | |
|
99 | <div class=""> | |
|
100 | <div class="fields"> | |
|
101 | ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} | |
|
102 | </div> | |
|
103 | <div class="field" style="border:none;color:#888"> | |
|
104 | <ul> | |
|
105 | <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. | |
|
106 | If you need fully delete it from file system please do it manually''')} | |
|
107 | </li> | |
|
108 | </ul> | |
|
109 | </div> | |
|
110 | </div> | |
|
111 | ${h.end_form()} | |
|
112 | </div> | |
|
113 | </div> | |
|
114 | ||
|
92 | 115 | <div class="buttons"> |
|
93 | 116 | ${h.submit('save',_('Save'),class_="ui-btn large")} |
|
94 | 117 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
|
95 | 118 | </div> |
|
96 |
|
|
|
119 | ||
|
97 | 120 | </div> |
|
98 | 121 | ${h.end_form()} |
|
99 | 122 | </div> |
|
100 | 123 | </div> |
|
101 | 124 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now