Show More
@@ -409,6 +409,7 b'' | |||
|
409 | 409 | display: block; |
|
410 | 410 | height: 16px; |
|
411 | 411 | padding: 8px; //must add up to td height (28px) |
|
412 | width: 120px; // set width | |
|
412 | 413 | |
|
413 | 414 | &:hover { |
|
414 | 415 | background-color: @grey5; |
@@ -13,8 +13,8 b'' | |||
|
13 | 13 | <th class="td-radio">${_('Write')}</th> |
|
14 | 14 | <th class="td-radio">${_('Admin')}</th> |
|
15 | 15 | <th class="td-owner">${_('User/User Group')}</th> |
|
16 | <th></th> | |
|
17 | <th></th> | |
|
16 | <th class="td-action"></th> | |
|
17 | <th class="td-action"></th> | |
|
18 | 18 | </tr> |
|
19 | 19 | ## USERS |
|
20 | 20 | %for _user in c.repo_group.permissions(): |
@@ -36,9 +36,16 b'' | |||
|
36 | 36 | %endif |
|
37 | 37 | </td> |
|
38 | 38 | <td></td> |
|
39 | <td> | |
|
39 | <td class="quick_repo_menu"> | |
|
40 | 40 | % if c.rhodecode_user.is_admin: |
|
41 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
41 | <i class="icon-more"></i> | |
|
42 | <div class="menu_items_container" style="display: none;"> | |
|
43 | <ul class="menu_items"> | |
|
44 | <li> | |
|
45 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-groups-permissions'))} | |
|
46 | </li> | |
|
47 | </ul> | |
|
48 | </div> | |
|
42 | 49 | % endif |
|
43 | 50 | </td> |
|
44 | 51 | </tr> |
@@ -67,17 +74,24 b'' | |||
|
67 | 74 | %if _user.username != h.DEFAULT_USER: |
|
68 | 75 | <span class="btn btn-link btn-danger revoke_perm" |
|
69 | 76 | member="${_user.user_id}" member_type="user"> |
|
70 |
${_('Re |
|
|
77 | ${_('Remove')} | |
|
71 | 78 | </span> |
|
72 | 79 | %endif |
|
73 | 80 | </td> |
|
74 | <td> | |
|
81 | <td class="quick_repo_menu"> | |
|
75 | 82 | % if c.rhodecode_user.is_admin: |
|
76 | % if _user.username == h.DEFAULT_USER: | |
|
77 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-permissions'))} | |
|
78 |
|
|
|
79 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
80 |
% |
|
|
83 | <i class="icon-more"></i> | |
|
84 | <div class="menu_items_container" style="display: none;"> | |
|
85 | <ul class="menu_items"> | |
|
86 | <li> | |
|
87 | % if _user.username == h.DEFAULT_USER: | |
|
88 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-groups-permissions'))} | |
|
89 | % else: | |
|
90 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-groups-permissions'))} | |
|
91 | % endif | |
|
92 | </li> | |
|
93 | </ul> | |
|
94 | </div> | |
|
81 | 95 | % endif |
|
82 | 96 | </td> |
|
83 | 97 | %else: |
@@ -101,9 +115,16 b'' | |||
|
101 | 115 | </span> |
|
102 | 116 | </td> |
|
103 | 117 | <td></td> |
|
104 | <td> | |
|
118 | <td class="quick_repo_menu"> | |
|
105 | 119 | % if c.rhodecode_user.is_admin: |
|
106 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
120 | <i class="icon-more"></i> | |
|
121 | <div class="menu_items_container" style="display: none;"> | |
|
122 | <ul class="menu_items"> | |
|
123 | <li> | |
|
124 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-groups-permissions'))} | |
|
125 | </li> | |
|
126 | </ul> | |
|
127 | </div> | |
|
107 | 128 | % endif |
|
108 | 129 | </td> |
|
109 | 130 | %endif |
@@ -131,12 +152,19 b'' | |||
|
131 | 152 | <td class="td-action"> |
|
132 | 153 | <span class="btn btn-link btn-danger revoke_perm" |
|
133 | 154 | member="${_user_group.users_group_id}" member_type="user_group"> |
|
134 |
${_('Re |
|
|
155 | ${_('Remove')} | |
|
135 | 156 | </span> |
|
136 | 157 | </td> |
|
137 | <td> | |
|
158 | <td class="quick_repo_menu"> | |
|
138 | 159 | % if c.rhodecode_user.is_admin: |
|
139 | ${h.link_to('show permissions', h.route_path('edit_user_group_perms_summary', user_group_id=_user_group.users_group_id, _anchor='repositories-permissions'))} | |
|
160 | <i class="icon-more"></i> | |
|
161 | <div class="menu_items_container" style="display: none;"> | |
|
162 | <ul class="menu_items"> | |
|
163 | <li> | |
|
164 | ${h.link_to('show permissions', h.route_path('edit_user_group_perms_summary', user_group_id=_user_group.users_group_id, _anchor='repositories-groups-permissions'))} | |
|
165 | </li> | |
|
166 | </ul> | |
|
167 | </div> | |
|
140 | 168 | % endif |
|
141 | 169 | </td> |
|
142 | 170 | </tr> |
@@ -185,5 +213,6 b'' | |||
|
185 | 213 | }); |
|
186 | 214 | $('.revoke_perm').on('click', function(e){ |
|
187 | 215 | markRevokePermInput($(this), 'group'); |
|
188 | }) | |
|
216 | }); | |
|
217 | quick_repo_menu(); | |
|
189 | 218 | </script> |
@@ -13,8 +13,8 b'' | |||
|
13 | 13 | <th class="td-radio">${_('Write')}</th> |
|
14 | 14 | <th class="td-radio">${_('Admin')}</th> |
|
15 | 15 | <th class="td-owner">${_('User/User Group')}</th> |
|
16 | <th></th> | |
|
17 | <th></th> | |
|
16 | <th class="td-action"></th> | |
|
17 | <th class="td-action"></th> | |
|
18 | 18 | </tr> |
|
19 | 19 | ## USERS |
|
20 | 20 | %for _user in c.rhodecode_db_repo.permissions(): |
@@ -35,9 +35,16 b'' | |||
|
35 | 35 | %endif |
|
36 | 36 | </td> |
|
37 | 37 | <td></td> |
|
38 | <td> | |
|
38 | <td class="quick_repo_menu"> | |
|
39 | 39 | % if c.rhodecode_user.is_admin: |
|
40 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
40 | <i class="icon-more"></i> | |
|
41 | <div class="menu_items_container" style="display: none;"> | |
|
42 | <ul class="menu_items"> | |
|
43 | <li> | |
|
44 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
45 | </li> | |
|
46 | </ul> | |
|
47 | </div> | |
|
41 | 48 | % endif |
|
42 | 49 | </td> |
|
43 | 50 | </tr> |
@@ -52,9 +59,16 b'' | |||
|
52 | 59 | ${base.gravatar(h.DEFAULT_USER_EMAIL, 16)} |
|
53 | 60 | ${h.DEFAULT_USER} - ${_('only users/user groups explicitly added here will have access')}</td> |
|
54 | 61 | <td></td> |
|
55 | <td> | |
|
62 | <td class="quick_repo_menu"> | |
|
56 | 63 | % if c.rhodecode_user.is_admin: |
|
57 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-permissions'))} | |
|
64 | <i class="icon-more"></i> | |
|
65 | <div class="menu_items_container" style="display: none;"> | |
|
66 | <ul class="menu_items"> | |
|
67 | <li> | |
|
68 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-permissions'))} | |
|
69 | </li> | |
|
70 | </ul> | |
|
71 | </div> | |
|
58 | 72 | % endif |
|
59 | 73 | </td> |
|
60 | 74 | </tr> |
@@ -89,17 +103,24 b'' | |||
|
89 | 103 | %if _user.username != h.DEFAULT_USER and getattr(_user, 'branch_rules', None) is None: |
|
90 | 104 | <span class="btn btn-link btn-danger revoke_perm" |
|
91 | 105 | member="${_user.user_id}" member_type="user"> |
|
92 |
${_('Re |
|
|
106 | ${_('Remove')} | |
|
93 | 107 | </span> |
|
94 | 108 | %endif |
|
95 | 109 | </td> |
|
96 | <td> | |
|
110 | <td class="quick_repo_menu"> | |
|
97 | 111 | % if c.rhodecode_user.is_admin: |
|
98 | % if _user.username == h.DEFAULT_USER: | |
|
99 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-permissions'))} | |
|
100 |
|
|
|
101 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
102 |
% |
|
|
112 | <i class="icon-more"></i> | |
|
113 | <div class="menu_items_container" style="display: none;"> | |
|
114 | <ul class="menu_items"> | |
|
115 | <li> | |
|
116 | % if _user.username == h.DEFAULT_USER: | |
|
117 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-permissions'))} | |
|
118 | % else: | |
|
119 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
120 | % endif | |
|
121 | </li> | |
|
122 | </ul> | |
|
123 | </div> | |
|
103 | 124 | % endif |
|
104 | 125 | </td> |
|
105 | 126 | </tr> |
@@ -126,12 +147,19 b'' | |||
|
126 | 147 | <td class="td-action"> |
|
127 | 148 | <span class="btn btn-link btn-danger revoke_perm" |
|
128 | 149 | member="${_user_group.users_group_id}" member_type="user_group"> |
|
129 |
${_('Re |
|
|
150 | ${_('Remove')} | |
|
130 | 151 | </span> |
|
131 | 152 | </td> |
|
132 | <td> | |
|
153 | <td class="quick_repo_menu"> | |
|
133 | 154 | % if c.rhodecode_user.is_admin: |
|
134 | ${h.link_to('show permissions', h.route_path('edit_user_group_perms_summary', user_group_id=_user_group.users_group_id, _anchor='repositories-permissions'))} | |
|
155 | <i class="icon-more"></i> | |
|
156 | <div class="menu_items_container" style="display: none;"> | |
|
157 | <ul class="menu_items"> | |
|
158 | <li> | |
|
159 | ${h.link_to('show permissions', h.route_path('edit_user_group_perms_summary', user_group_id=_user_group.users_group_id, _anchor='repositories-permissions'))} | |
|
160 | </li> | |
|
161 | </ul> | |
|
162 | </div> | |
|
135 | 163 | % endif |
|
136 | 164 | </td> |
|
137 | 165 | </tr> |
@@ -169,4 +197,5 b'' | |||
|
169 | 197 | $('.revoke_perm').on('click', function(e){ |
|
170 | 198 | markRevokePermInput($(this), 'repository'); |
|
171 | 199 | }); |
|
200 | quick_repo_menu(); | |
|
172 | 201 | </script> |
@@ -13,8 +13,8 b'' | |||
|
13 | 13 | <th class="td-radio">${_('Write')}</th> |
|
14 | 14 | <th class="td-radio">${_('Admin')}</th> |
|
15 | 15 | <th>${_('User/User Group')}</th> |
|
16 | <th></th> | |
|
17 | <th></th> | |
|
16 | <th class="td-action"></th> | |
|
17 | <th class="td-action"></th> | |
|
18 | 18 | </tr> |
|
19 | 19 | ## USERS |
|
20 | 20 | %for _user in c.user_group.permissions(): |
@@ -38,9 +38,16 b'' | |||
|
38 | 38 | </span> |
|
39 | 39 | </td> |
|
40 | 40 | <td></td> |
|
41 | <td> | |
|
41 | <td class="quick_repo_menu"> | |
|
42 | 42 | % if c.rhodecode_user.is_admin: |
|
43 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
43 | <i class="icon-more"></i> | |
|
44 | <div class="menu_items_container" style="display: none;"> | |
|
45 | <ul class="menu_items"> | |
|
46 | <li> | |
|
47 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='user-groups-permissions'))} | |
|
48 | </li> | |
|
49 | </ul> | |
|
50 | </div> | |
|
44 | 51 | % endif |
|
45 | 52 | </td> |
|
46 | 53 | </tr> |
@@ -69,17 +76,24 b'' | |||
|
69 | 76 | %if _user.username != h.DEFAULT_USER: |
|
70 | 77 | <span class="btn btn-link btn-danger revoke_perm" |
|
71 | 78 | member="${_user.user_id}" member_type="user"> |
|
72 |
${_('Re |
|
|
79 | ${_('Remove')} | |
|
73 | 80 | </span> |
|
74 | 81 | %endif |
|
75 | 82 | </td> |
|
76 | <td> | |
|
83 | <td class="quick_repo_menu"> | |
|
77 | 84 | % if c.rhodecode_user.is_admin: |
|
78 | % if _user.username == h.DEFAULT_USER: | |
|
79 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='repositories-permissions'))} | |
|
80 |
|
|
|
81 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
82 |
% |
|
|
85 | <i class="icon-more"></i> | |
|
86 | <div class="menu_items_container" style="display: none;"> | |
|
87 | <ul class="menu_items"> | |
|
88 | <li> | |
|
89 | % if _user.username == h.DEFAULT_USER: | |
|
90 | ${h.link_to('show permissions', h.route_path('admin_permissions_overview', _anchor='user-groups-permissions'))} | |
|
91 | % else: | |
|
92 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='user-groups-permissions'))} | |
|
93 | % endif | |
|
94 | </li> | |
|
95 | </ul> | |
|
96 | </div> | |
|
83 | 97 | % endif |
|
84 | 98 | </td> |
|
85 | 99 | %else: |
@@ -103,9 +117,16 b'' | |||
|
103 | 117 | </span> |
|
104 | 118 | </td> |
|
105 | 119 | <td></td> |
|
106 | <td> | |
|
120 | <td class="quick_repo_menu"> | |
|
107 | 121 | % if c.rhodecode_user.is_admin: |
|
108 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='repositories-permissions'))} | |
|
122 | <i class="icon-more"></i> | |
|
123 | <div class="menu_items_container" style="display: none;"> | |
|
124 | <ul class="menu_items"> | |
|
125 | <li> | |
|
126 | ${h.link_to('show permissions', h.route_path('edit_user_perms_summary', user_id=_user.user_id, _anchor='user-groups-permissions'))} | |
|
127 | </li> | |
|
128 | </ul> | |
|
129 | </div> | |
|
109 | 130 | % endif |
|
110 | 131 | </td> |
|
111 | 132 | %endif |
@@ -133,12 +154,19 b'' | |||
|
133 | 154 | <td class="td-action"> |
|
134 | 155 | <span class="btn btn-link btn-danger revoke_perm" |
|
135 | 156 | member="${_user_group.users_group_id}" member_type="user_group"> |
|
136 |
${_('Re |
|
|
157 | ${_('Remove')} | |
|
137 | 158 | </span> |
|
138 | 159 | </td> |
|
139 | <td> | |
|
160 | <td class="quick_repo_menu"> | |
|
140 | 161 | % if c.rhodecode_user.is_admin: |
|
141 | ${h.link_to('show permissions', h.route_path('edit_user_group_perms_summary', user_group_id=_user_group.users_group_id, _anchor='repositories-permissions'))} | |
|
162 | <i class="icon-more"></i> | |
|
163 | <div class="menu_items_container" style="display: none;"> | |
|
164 | <ul class="menu_items"> | |
|
165 | <li> | |
|
166 | ${h.link_to('show permissions', h.route_path('edit_user_group_perms_summary', user_group_id=_user_group.users_group_id, _anchor='user-groups-permissions'))} | |
|
167 | </li> | |
|
168 | </ul> | |
|
169 | </div> | |
|
142 | 170 | % endif |
|
143 | 171 | </td> |
|
144 | 172 | </tr> |
@@ -174,4 +202,5 b'' | |||
|
174 | 202 | $('.revoke_perm').on('click', function(e){ |
|
175 | 203 | markRevokePermInput($(this), 'usergroup'); |
|
176 | 204 | }); |
|
205 | quick_repo_menu() | |
|
177 | 206 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now