Show More
@@ -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 | </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> | |
|
91 | 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