Commit 39e7a0ea authored by Andrey Kumanyaev's avatar Andrey Kumanyaev
Browse files

Rewrite rendering rows with users projects access in Users table in Admin group section

parent 634783fe
...@@ -78,7 +78,9 @@ ...@@ -78,7 +78,9 @@
%td.projects_access %td.projects_access
- u.projects.in_namespace(@group).each do |project| - u.projects.in_namespace(@group).each do |project|
- u_p = u.users_projects.in_project(project).first - u_p = u.users_projects.in_project(project).first
= "#{project.name} (#{link_to u_p.project_access_human, edit_admin_team_member_path(u_p) })".html_safe %span
= project.name
= link_to "(#{ u_p.project_access_human })", edit_admin_team_member_path(u_p)
%tr %tr
%td.input= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5' %td.input= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5'
%td= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3"} %td= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3"}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment