Commit 39e7a0eafe52ba8855baa3df1d609c27b2984852
1 parent
634783fe
Exists in
master
and in
4 other branches
Rewrite rendering rows with users projects access in Users table in Admin group section
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/views/admin/groups/show.html.haml
... | ... | @@ -78,7 +78,9 @@ |
78 | 78 | %td.projects_access |
79 | 79 | - u.projects.in_namespace(@group).each do |project| |
80 | 80 | - u_p = u.users_projects.in_project(project).first |
81 | - = "#{project.name} (#{link_to u_p.project_access_human, edit_admin_team_member_path(u_p) })".html_safe | |
81 | + %span | |
82 | + = project.name | |
83 | + = link_to "(#{ u_p.project_access_human })", edit_admin_team_member_path(u_p) | |
82 | 84 | %tr |
83 | 85 | %td.input= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5' |
84 | 86 | %td= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3"} | ... | ... |