diff --git a/rhodecode/apps/admin/views/user_groups.py b/rhodecode/apps/admin/views/user_groups.py --- a/rhodecode/apps/admin/views/user_groups.py +++ b/rhodecode/apps/admin/views/user_groups.py @@ -88,8 +88,8 @@ class AdminUserGroupsView(BaseAppView, D _render = self.request.get_partial_renderer( 'rhodecode:templates/data_table/_dt_elements.mako') - def user_group_name(user_group_id, user_group_name): - return _render("user_group_name", user_group_id, user_group_name) + def user_group_name(user_group_name): + return _render("user_group_name", user_group_name) def user_group_actions(user_group_id, user_group_name): return _render("user_group_actions", user_group_id, user_group_name) @@ -153,8 +153,7 @@ class AdminUserGroupsView(BaseAppView, D user_groups_data = [] for user_gr in auth_user_group_list: user_groups_data.append({ - "users_group_name": user_group_name( - user_gr.users_group_id, h.escape(user_gr.users_group_name)), + "users_group_name": user_group_name(user_gr.users_group_name), "name_raw": h.escape(user_gr.users_group_name), "description": h.escape(user_gr.user_group_description), "members": user_gr.member_count, diff --git a/rhodecode/templates/data_table/_dt_elements.mako b/rhodecode/templates/data_table/_dt_elements.mako --- a/rhodecode/templates/data_table/_dt_elements.mako +++ b/rhodecode/templates/data_table/_dt_elements.mako @@ -282,10 +282,10 @@ ${base.gravatar_with_user(username, 16)} -<%def name="user_group_name(user_group_id, user_group_name)"> +<%def name="user_group_name(user_group_name)">
- - ${user_group_name} + + ${h.link_to_group(user_group_name)}