Show More
@@ -88,8 +88,8 b' class AdminUserGroupsView(BaseAppView, D' | |||||
88 | _render = self.request.get_partial_renderer( |
|
88 | _render = self.request.get_partial_renderer( | |
89 | 'rhodecode:templates/data_table/_dt_elements.mako') |
|
89 | 'rhodecode:templates/data_table/_dt_elements.mako') | |
90 |
|
90 | |||
91 |
def user_group_name( |
|
91 | def user_group_name(user_group_name): | |
92 |
return _render("user_group_name", |
|
92 | return _render("user_group_name", user_group_name) | |
93 |
|
93 | |||
94 | def user_group_actions(user_group_id, user_group_name): |
|
94 | def user_group_actions(user_group_id, user_group_name): | |
95 | return _render("user_group_actions", user_group_id, user_group_name) |
|
95 | return _render("user_group_actions", user_group_id, user_group_name) | |
@@ -153,8 +153,7 b' class AdminUserGroupsView(BaseAppView, D' | |||||
153 | user_groups_data = [] |
|
153 | user_groups_data = [] | |
154 | for user_gr in auth_user_group_list: |
|
154 | for user_gr in auth_user_group_list: | |
155 | user_groups_data.append({ |
|
155 | user_groups_data.append({ | |
156 | "users_group_name": user_group_name( |
|
156 | "users_group_name": user_group_name(user_gr.users_group_name), | |
157 | user_gr.users_group_id, h.escape(user_gr.users_group_name)), |
|
|||
158 | "name_raw": h.escape(user_gr.users_group_name), |
|
157 | "name_raw": h.escape(user_gr.users_group_name), | |
159 | "description": h.escape(user_gr.user_group_description), |
|
158 | "description": h.escape(user_gr.user_group_description), | |
160 | "members": user_gr.member_count, |
|
159 | "members": user_gr.member_count, |
@@ -282,10 +282,10 b'' | |||||
282 | ${base.gravatar_with_user(username, 16)} |
|
282 | ${base.gravatar_with_user(username, 16)} | |
283 | </%def> |
|
283 | </%def> | |
284 |
|
284 | |||
285 |
<%def name="user_group_name(user_group_ |
|
285 | <%def name="user_group_name(user_group_name)"> | |
286 | <div> |
|
286 | <div> | |
287 | <a href="${h.route_path('edit_user_group', user_group_id=user_group_id)}"> |
|
287 | <i class="icon-group" title="${_('User group')}"></i> | |
288 | <i class="icon-group" title="${_('User group')}"></i> ${user_group_name}</a> |
|
288 | ${h.link_to_group(user_group_name)} | |
289 | </div> |
|
289 | </div> | |
290 | </%def> |
|
290 | </%def> | |
291 |
|
291 |
General Comments 0
You need to be logged in to leave comments.
Login now