Show More
@@ -1,92 +1,101 b'' | |||||
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 | ${_('%s Settings') % c.repo_name} - ${c.rhodecode_name} |
|
5 | ${_('%s Settings') % c.repo_name} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs_links()"> |
|
8 | <%def name="breadcrumbs_links()"> | |
9 | ${h.link_to(_(u'Home'),h.url('/'))} |
|
9 | ${h.link_to(_(u'Home'),h.url('/'))} | |
10 | » |
|
10 | » | |
11 | ${h.link_to(c.repo_info.repo_name,h.url('summary_home',repo_name=c.repo_info.repo_name))} |
|
11 | ${h.link_to(c.repo_info.repo_name,h.url('summary_home',repo_name=c.repo_info.repo_name))} | |
12 | » |
|
12 | » | |
13 | ${_('Settings')} |
|
13 | ${_('Settings')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="page_nav()"> |
|
16 | <%def name="page_nav()"> | |
17 | ${self.menu('settings')} |
|
17 | ${self.menu('settings')} | |
18 | </%def> |
|
18 | </%def> | |
19 | <%def name="main()"> |
|
19 | <%def name="main()"> | |
20 | <div class="box"> |
|
20 | <div class="box"> | |
21 | <!-- box / title --> |
|
21 | <!-- box / title --> | |
22 | <div class="title"> |
|
22 | <div class="title"> | |
23 | ${self.breadcrumbs()} |
|
23 | ${self.breadcrumbs()} | |
24 | </div> |
|
24 | </div> | |
25 | ${h.form(url('repo_settings_update', repo_name=c.repo_info.repo_name),method='put')} |
|
25 | ${h.form(url('repo_settings_update', repo_name=c.repo_info.repo_name),method='put')} | |
26 | <div class="form"> |
|
26 | <div class="form"> | |
27 | <!-- fields --> |
|
27 | <!-- fields --> | |
28 | <div class="fields"> |
|
28 | <div class="fields"> | |
29 | <div class="field"> |
|
29 | <div class="field"> | |
30 | <div class="label"> |
|
30 | <div class="label"> | |
31 | <label for="repo_name">${_('Name')}:</label> |
|
31 | <label for="repo_name">${_('Name')}:</label> | |
32 | </div> |
|
32 | </div> | |
33 | <div class="input input-medium"> |
|
33 | <div class="input input-medium"> | |
34 | ${h.text('repo_name',class_="small")} |
|
34 | ${h.text('repo_name',class_="small")} | |
35 | </div> |
|
35 | </div> | |
36 | </div> |
|
36 | </div> | |
37 | <div class="field"> |
|
37 | <div class="field"> | |
38 | <div class="label"> |
|
38 | <div class="label"> | |
39 | <label for="clone_uri">${_('Clone uri')}:</label> |
|
39 | <label for="clone_uri">${_('Clone uri')}:</label> | |
40 | </div> |
|
40 | </div> | |
41 | <div class="input"> |
|
41 | <div class="input"> | |
42 | ${h.text('clone_uri',class_="medium")} |
|
42 | ${h.text('clone_uri',class_="medium")} | |
43 | <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> |
|
43 | <span class="help-block">${_('Optional http[s] url from which repository should be cloned.')}</span> | |
44 | </div> |
|
44 | </div> | |
45 | </div> |
|
45 | </div> | |
46 | <div class="field"> |
|
46 | <div class="field"> | |
47 | <div class="label"> |
|
47 | <div class="label"> | |
48 | <label for="repo_group">${_('Repository group')}:</label> |
|
48 | <label for="repo_group">${_('Repository group')}:</label> | |
49 | </div> |
|
49 | </div> | |
50 | <div class="input"> |
|
50 | <div class="input"> | |
51 | ${h.select('repo_group','',c.repo_groups,class_="medium")} |
|
51 | ${h.select('repo_group','',c.repo_groups,class_="medium")} | |
52 | <span class="help-block">${_('Optional select a group to put this repository into.')}</span> |
|
52 | <span class="help-block">${_('Optional select a group to put this repository into.')}</span> | |
53 | </div> |
|
53 | </div> | |
54 | </div> |
|
54 | </div> | |
55 | <div class="field"> |
|
55 | <div class="field"> | |
|
56 | <div class="label"> | |||
|
57 | <label for="landing_rev">${_('Landing revision')}:</label> | |||
|
58 | </div> | |||
|
59 | <div class="input"> | |||
|
60 | ${h.select('landing_rev','',c.landing_revs,class_="medium")} | |||
|
61 | <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span> | |||
|
62 | </div> | |||
|
63 | </div> | |||
|
64 | <div class="field"> | |||
56 | <div class="label label-textarea"> |
|
65 | <div class="label label-textarea"> | |
57 | <label for="description">${_('Description')}:</label> |
|
66 | <label for="description">${_('Description')}:</label> | |
58 | </div> |
|
67 | </div> | |
59 | <div class="textarea text-area editor"> |
|
68 | <div class="textarea text-area editor"> | |
60 | ${h.textarea('description')} |
|
69 | ${h.textarea('description')} | |
61 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
|
70 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> | |
62 | </div> |
|
71 | </div> | |
63 | </div> |
|
72 | </div> | |
64 |
|
73 | |||
65 | <div class="field"> |
|
74 | <div class="field"> | |
66 | <div class="label label-checkbox"> |
|
75 | <div class="label label-checkbox"> | |
67 | <label for="private">${_('Private repository')}:</label> |
|
76 | <label for="private">${_('Private repository')}:</label> | |
68 | </div> |
|
77 | </div> | |
69 | <div class="checkboxes"> |
|
78 | <div class="checkboxes"> | |
70 | ${h.checkbox('private',value="True")} |
|
79 | ${h.checkbox('private',value="True")} | |
71 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
|
80 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> | |
72 | </div> |
|
81 | </div> | |
73 | </div> |
|
82 | </div> | |
74 |
|
83 | |||
75 | <div class="field"> |
|
84 | <div class="field"> | |
76 | <div class="label"> |
|
85 | <div class="label"> | |
77 | <label for="">${_('Permissions')}:</label> |
|
86 | <label for="">${_('Permissions')}:</label> | |
78 | </div> |
|
87 | </div> | |
79 | <div class="input"> |
|
88 | <div class="input"> | |
80 | <%include file="../admin/repos/repo_edit_perms.html"/> |
|
89 | <%include file="../admin/repos/repo_edit_perms.html"/> | |
81 | </div> |
|
90 | </div> | |
82 |
|
91 | |||
83 | <div class="buttons"> |
|
92 | <div class="buttons"> | |
84 | ${h.submit('save',_('Save'),class_="ui-button")} |
|
93 | ${h.submit('save',_('Save'),class_="ui-button")} | |
85 | ${h.reset('reset',_('Reset'),class_="ui-button")} |
|
94 | ${h.reset('reset',_('Reset'),class_="ui-button")} | |
86 | </div> |
|
95 | </div> | |
87 | </div> |
|
96 | </div> | |
88 | </div> |
|
97 | </div> | |
89 | ${h.end_form()} |
|
98 | ${h.end_form()} | |
90 | </div> |
|
99 | </div> | |
91 | </div> |
|
100 | </div> | |
92 | </%def> |
|
101 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now