Mercurial > kallithea
comparison rhodecode/templates/admin/permissions/permissions.html @ 4116:ffd45b185016 rhodecode-2.2.5-gpl
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
This imports changes between changesets 21af6c4eab3d and 6177597791c2 in
RhodeCode's original repository, including only changes to Python files and HTML.
RhodeCode clearly licensed its changes to these files under GPLv3
in their /LICENSE file, which states the following:
The Python code and integrated HTML are licensed under the GPLv3 license.
(See:
https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE
or
http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE
for an online copy of that LICENSE file)
Conservancy reviewed these changes and confirmed that they can be licensed as
a whole to the Kallithea project under GPLv3-only.
While some of the contents committed herein are clearly licensed
GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the
statement above from RhodeCode indicates that they intend GPLv3-only as their
license, per GPLv3ยง14 and other relevant sections of GPLv3.
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:03:13 -0400 |
parents | 5293d4bbb1ea |
children | 9af9953a3159 |
comparison
equal
deleted
inserted
replaced
4115:8b7294a804a0 | 4116:ffd45b185016 |
---|---|
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 ${_('Permissions administration')} · ${c.rhodecode_name} | 5 ${_('Permissions administration')} |
6 %if c.rhodecode_name: | |
7 · ${c.rhodecode_name} | |
8 %endif | |
6 </%def> | 9 </%def> |
7 | 10 |
8 <%def name="breadcrumbs_links()"> | 11 <%def name="breadcrumbs_links()"> |
9 ${h.link_to(_('Admin'),h.url('admin_home'))} | 12 ${h.link_to(_('Admin'),h.url('admin_home'))} |
10 » | 13 » |
13 | 16 |
14 <%def name="page_nav()"> | 17 <%def name="page_nav()"> |
15 ${self.menu('admin')} | 18 ${self.menu('admin')} |
16 </%def> | 19 </%def> |
17 | 20 |
21 | |
18 <%def name="main()"> | 22 <%def name="main()"> |
19 <div class="box box-left"> | 23 <div class="box"> |
20 <!-- box / title --> | |
21 <div class="title"> | 24 <div class="title"> |
22 ${self.breadcrumbs()} | 25 ${self.breadcrumbs()} |
23 </div> | 26 </div> |
24 <h3>${_('Default permissions')}</h3> | |
25 ${h.form(url('permission', id='default'),method='put')} | |
26 <div class="form"> | |
27 <!-- fields --> | |
28 <div class="fields"> | |
29 <div class="field"> | |
30 <div class="label label-checkbox"> | |
31 <label for="anonymous">${_('Anonymous access')}:</label> | |
32 </div> | |
33 <div class="checkboxes"> | |
34 <div class="checkbox"> | |
35 ${h.checkbox('anonymous',True)} | |
36 </div> | |
37 </div> | |
38 </div> | |
39 <div class="field"> | |
40 <div class="label"> | |
41 <label for="default_repo_perm">${_('Repository')}:</label> | |
42 </div> | |
43 <div class="select"> | |
44 ${h.select('default_repo_perm','',c.repo_perms_choices)} | |
45 | 27 |
46 ${h.checkbox('overwrite_default_repo','true')} | 28 ##main |
47 <label for="overwrite_default_repo"> | 29 <div style="width: 150px; float:left"> |
48 <span class="tooltip" | 30 <ul class="nav nav-pills nav-stacked"> |
49 title="${h.tooltip(_('All default permissions on each repository will be reset to chosen permission, note that all custom default permission on repositories will be lost'))}"> | 31 <li> |
50 ${_('Overwrite existing settings')}</span> </label> | 32 <div class="gravatar_box" style="height: 26px"> |
51 </div> | 33 <div class="gravatar" style="float: left"> |
52 </div> | 34 <i class="icon-ban-circle" style="font-size: 26px"></i> |
53 <div class="field"> | 35 </div> |
54 <div class="label"> | 36 <div class="truncate" style="margin:10px 0px 10px 0px; color:#5f5f5f; float:left; width: 100px"> |
55 <label for="default_group_perm">${_('Repository group')}:</label> | 37 <strong>${_('Permissions')}</strong> |
56 </div> | 38 </div> |
57 <div class="select"> | 39 </div> |
58 ${h.select('default_group_perm','',c.group_perms_choices)} | 40 </li> |
59 ${h.checkbox('overwrite_default_group','true')} | 41 <li class="${'active' if c.active=='globals' else ''}"><a href="${h.url('admin_permissions')}">${_('Global')}</a></li> |
60 <label for="overwrite_default_group"> | 42 <li class="${'active' if c.active=='ips' else ''}"><a href="${h.url('admin_permissions_ips')}">${_('IP whitelist')}</a></li> |
61 <span class="tooltip" | 43 <li class="${'active' if c.active=='perms' else ''}"><a href="${h.url('admin_permissions_perms')}">${_('Overview')}</a></li> |
62 title="${h.tooltip(_('All default permissions on each repository group will be reset to chosen permission, note that all custom default permission on repository groups will be lost'))}"> | 44 </ul> |
63 ${_('Overwrite existing settings')}</span> </label> | 45 </div> |
64 | 46 |
65 </div> | 47 <div style="width:750px; float:left; padding: 10px 0px 0px 20px;margin: 0px 0px 0px 10px; border-left: 1px solid #DDDDDD"> |
66 </div> | 48 <%include file="/admin/permissions/permissions_${c.active}.html"/> |
67 <div class="field"> | |
68 <div class="label"> | |
69 <label for="default_group_perm">${_('User group')}:</label> | |
70 </div> | |
71 <div class="select"> | |
72 ${h.select('default_user_group_perm','',c.user_group_perms_choices)} | |
73 ${h.checkbox('overwrite_default_user_group','true')} | |
74 <label for="overwrite_default_user_group"> | |
75 <span class="tooltip" | |
76 title="${h.tooltip(_('All default permissions on each user group will be reset to chosen permission, note that all custom default permission on repository groups will be lost'))}"> | |
77 ${_('Overwrite existing settings')}</span> </label> | |
78 | |
79 </div> | |
80 </div> | |
81 <div class="field"> | |
82 <div class="label"> | |
83 <label for="default_repo_create">${_('Repository creation')}:</label> | |
84 </div> | |
85 <div class="select"> | |
86 ${h.select('default_repo_create','',c.repo_create_choices)} | |
87 </div> | |
88 </div> | |
89 <div class="field"> | |
90 <div class="label"> | |
91 <label for="default_user_group_create">${_('User group creation')}:</label> | |
92 </div> | |
93 <div class="select"> | |
94 ${h.select('default_user_group_create','',c.user_group_create_choices)} | |
95 </div> | |
96 </div> | |
97 <div class="field"> | |
98 <div class="label"> | |
99 <label for="default_fork">${_('Repository forking')}:</label> | |
100 </div> | |
101 <div class="select"> | |
102 ${h.select('default_fork','',c.fork_choices)} | |
103 </div> | |
104 </div> | |
105 <div class="field"> | |
106 <div class="label"> | |
107 <label for="default_register">${_('Registration')}:</label> | |
108 </div> | |
109 <div class="select"> | |
110 ${h.select('default_register','',c.register_choices)} | |
111 </div> | |
112 </div> | |
113 <div class="field"> | |
114 <div class="label"> | |
115 <label for="default_extern_activate">${_('External auth account activation')}:</label> | |
116 </div> | |
117 <div class="select"> | |
118 ${h.select('default_extern_activate','',c.extern_activate_choices)} | |
119 </div> | |
120 </div> | |
121 <div class="buttons"> | |
122 ${h.submit('save',_('Save'),class_="ui-btn large")} | |
123 ${h.reset('reset',_('Reset'),class_="ui-btn large")} | |
124 </div> | |
125 </div> | |
126 </div> | 49 </div> |
127 ${h.end_form()} | |
128 </div> | 50 </div> |
129 | 51 |
130 <div style="min-height:780px" class="box box-right"> | |
131 <!-- box / title --> | |
132 <div class="title"> | |
133 <h5>${_('Default User Permissions')}</h5> | |
134 </div> | |
135 | |
136 ## permissions overview | |
137 <%namespace name="p" file="/base/perms_summary.html"/> | |
138 ${p.perms_summary(c.perm_user.permissions, show_all=True)} | |
139 | |
140 </div> | |
141 <div class="box box-left" style="clear:left"> | |
142 <!-- box / title --> | |
143 <div class="title"> | |
144 <h5>${_('Allowed IP addresses')}</h5> | |
145 </div> | |
146 | |
147 <div class="ips_wrap"> | |
148 <table class="noborder"> | |
149 %if c.user_ip_map: | |
150 %for ip in c.user_ip_map: | |
151 <tr> | |
152 <td><div class="ip">${ip.ip_addr}</div></td> | |
153 <td><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> | |
154 <td> | |
155 ${h.form(url('user_ips_delete', id=c.user.user_id),method='delete')} | |
156 ${h.hidden('del_ip',ip.ip_id)} | |
157 ${h.hidden('default_user', 'True')} | |
158 ${h.submit('remove_',_('delete'),id="remove_ip_%s" % ip.ip_id, | |
159 class_="delete_icon action_button", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} | |
160 ${h.end_form()} | |
161 </td> | |
162 </tr> | |
163 %endfor | |
164 %else: | |
165 <tr><td><div class="ip">${_('All IP addresses are allowed')}</div></td></tr> | |
166 %endif | |
167 </table> | |
168 </div> | |
169 | |
170 ${h.form(url('user_ips', id=c.user.user_id),method='put')} | |
171 <div class="form"> | |
172 <!-- fields --> | |
173 <div class="fields"> | |
174 <div class="field"> | |
175 <div class="label"> | |
176 <label for="new_ip">${_('New ip address')}:</label> | |
177 </div> | |
178 <div class="input"> | |
179 ${h.hidden('default_user', 'True')} | |
180 ${h.text('new_ip', class_='medium')} | |
181 </div> | |
182 </div> | |
183 <div class="buttons"> | |
184 ${h.submit('save',_('Add'),class_="ui-btn large")} | |
185 ${h.reset('reset',_('Reset'),class_="ui-btn large")} | |
186 </div> | |
187 </div> | |
188 </div> | |
189 ${h.end_form()} | |
190 </div> | |
191 </%def> | 52 </%def> |