Show More
@@ -1,68 +1,68 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Repositories groups administration')} - ${c.rhodecode_name} |
|
6 | 6 | </%def> |
|
7 | 7 | |
|
8 | 8 | |
|
9 | 9 | <%def name="breadcrumbs_links()"> |
|
10 | 10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} |
|
11 | 11 | </%def> |
|
12 | 12 | <%def name="page_nav()"> |
|
13 | 13 | ${self.menu('admin')} |
|
14 | 14 | </%def> |
|
15 | 15 | <%def name="main()"> |
|
16 | 16 | <div class="box"> |
|
17 | 17 | <!-- box / title --> |
|
18 | 18 | <div class="title"> |
|
19 | 19 | ${self.breadcrumbs()} |
|
20 | 20 | <ul class="links"> |
|
21 | 21 | <li> |
|
22 | 22 | <span>${h.link_to(_(u'ADD NEW GROUP'),h.url('new_repos_group'))}</span> |
|
23 | 23 | </li> |
|
24 | 24 | </ul> |
|
25 | 25 | </div> |
|
26 | 26 | <!-- end box / title --> |
|
27 | 27 | <div class="table"> |
|
28 | 28 | % if c.groups: |
|
29 | 29 | <table class="table_disp"> |
|
30 | 30 | |
|
31 | 31 | <thead> |
|
32 | 32 | <tr> |
|
33 | 33 | <th class="left"><a href="#">${_('Group name')}</a></th> |
|
34 | 34 | <th class="left"><a href="#">${_('Description')}</a></th> |
|
35 | 35 | <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> |
|
36 | 36 | <th class="left">${_('action')}</th> |
|
37 | 37 | </tr> |
|
38 | 38 | </thead> |
|
39 | 39 | |
|
40 | 40 | ## REPO GROUPS |
|
41 | 41 | |
|
42 | 42 | % for gr in c.groups: |
|
43 | 43 | <tr> |
|
44 | 44 | <td> |
|
45 | 45 | <div style="white-space: nowrap"> |
|
46 | 46 | <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> |
|
47 | 47 | ${h.link_to(h.literal(' » '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))),url('edit_repos_group',id=gr.group_id))} |
|
48 | 48 | </div> |
|
49 | 49 | </td> |
|
50 | 50 | <td>${gr.group_description}</td> |
|
51 | 51 | <td><b>${gr.repositories.count()}</b></td> |
|
52 | 52 | <td> |
|
53 | 53 | ${h.form(url('repos_group', id=gr.group_id),method='delete')} |
|
54 | ${h.submit('remove_%s' % gr.name,'delete',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group: %s') % gr.name+"');")} | |
|
54 | ${h.submit('remove_%s' % gr.name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group: %s') % gr.name+"');")} | |
|
55 | 55 | ${h.end_form()} |
|
56 | 56 | </td> |
|
57 | 57 | </tr> |
|
58 | 58 | % endfor |
|
59 | 59 | |
|
60 | 60 | </table> |
|
61 | 61 | % else: |
|
62 | 62 | ${_('There are no repositories groups yet')} |
|
63 | 63 | % endif |
|
64 | 64 | |
|
65 | 65 | </div> |
|
66 | 66 | </div> |
|
67 | 67 | |
|
68 | 68 | </%def> |
@@ -1,92 +1,92 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${c.repo_name} ${_('Settings')} - ${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 label-textarea"> |
|
57 | 57 | <label for="description">${_('Description')}:</label> |
|
58 | 58 | </div> |
|
59 | 59 | <div class="textarea text-area editor"> |
|
60 | 60 | ${h.textarea('description')} |
|
61 | 61 | <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span> |
|
62 | 62 | </div> |
|
63 | 63 | </div> |
|
64 | 64 | |
|
65 | 65 | <div class="field"> |
|
66 | 66 | <div class="label label-checkbox"> |
|
67 | 67 | <label for="private">${_('Private repository')}:</label> |
|
68 | 68 | </div> |
|
69 | 69 | <div class="checkboxes"> |
|
70 | 70 | ${h.checkbox('private',value="True")} |
|
71 | 71 | <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> |
|
72 | 72 | </div> |
|
73 | 73 | </div> |
|
74 | 74 | |
|
75 | 75 | <div class="field"> |
|
76 | 76 | <div class="label"> |
|
77 | 77 | <label for="">${_('Permissions')}:</label> |
|
78 | 78 | </div> |
|
79 | 79 | <div class="input"> |
|
80 | 80 | <%include file="../admin/repos/repo_edit_perms.html"/> |
|
81 | 81 | </div> |
|
82 | 82 | |
|
83 | 83 | <div class="buttons"> |
|
84 | ${h.submit('save','Save',class_="ui-button")} | |
|
85 | ${h.reset('reset','Reset',class_="ui-button")} | |
|
84 | ${h.submit('save',_('Save'),class_="ui-button")} | |
|
85 | ${h.reset('reset',_('Reset'),class_="ui-button")} | |
|
86 | 86 | </div> |
|
87 | 87 | </div> |
|
88 | 88 | </div> |
|
89 | 89 | ${h.end_form()} |
|
90 | 90 | </div> |
|
91 | 91 | </div> |
|
92 | 92 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now