Commit 9acd7cf1bdc53fefe28b516e7e39523b866a8daa

Authored by Dmitriy Zaporozhets
1 parent d8398921

Show namespaces when adding projects to user in admin area

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/admin/users/show.html.haml
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
76 %th Project Access: 76 %th Project Access:
77 77
78 %tr 78 %tr
79 - %td= select_tag :project_ids, options_from_collection_for_select(@projects , :id, :name), multiple: true, data: {placeholder: 'Select projects'}, class: 'chosen span5' 79 + %td= select_tag :project_ids, options_from_collection_for_select(@projects , :id, :name_with_namespace), multiple: true, data: {placeholder: 'Select projects'}, class: 'chosen span5'
80 %td= select_tag :project_access, options_for_select(Project.access_options), class: "project-access-select chosen span3" 80 %td= select_tag :project_access, options_for_select(Project.access_options), class: "project-access-select chosen span3"
81 81
82 %tr 82 %tr
@@ -101,7 +101,7 @@ @@ -101,7 +101,7 @@
101 - @admin_user.users_projects.each do |tm| 101 - @admin_user.users_projects.each do |tm|
102 - project = tm.project 102 - project = tm.project
103 %tr 103 %tr
104 - %td= link_to project.name, admin_project_path(project) 104 + %td= link_to project.name_with_namespace, admin_project_path(project)
105 %td= tm.project_access_human 105 %td= tm.project_access_human
106 %td= link_to 'Edit Access', edit_admin_team_member_path(tm), class: "btn small" 106 %td= link_to 'Edit Access', edit_admin_team_member_path(tm), class: "btn small"
107 %td= link_to 'Remove from team', admin_team_member_path(tm), confirm: 'Are you sure?', method: :delete, class: "btn small danger" 107 %td= link_to 'Remove from team', admin_team_member_path(tm), confirm: 'Are you sure?', method: :delete, class: "btn small danger"