From 5bd5d09b83c21bca1d6cd534622f410f9b0da4de Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 8 May 2013 20:11:49 +0300 Subject: [PATCH] Admin.user page: sort projects, add better confirm message for leaving team --- app/views/admin/users/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index b813f859a..6709b8f8a 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -71,7 +71,7 @@ .ui-box %h5.title Projects (#{@projects.count}) %ul.well-list - - @projects.each do |project| + - @projects.sort_by(&:name_with_namespace).each do |project| %li = link_to admin_project_path(project), class: dom_class(project) do - if project.namespace @@ -87,7 +87,7 @@ = tm.project_access_human = link_to edit_admin_project_member_path(project, tm.user), class: "btn btn-small" do %i.icon-edit - = link_to admin_project_member_path(project, tm.user), confirm: 'Are you sure?', method: :delete, class: "btn btn-small btn-remove" do + = link_to admin_project_member_path(project, tm.user), confirm: remove_from_project_team_message(project, @admin_user), method: :delete, class: "btn btn-small btn-remove" do %i.icon-remove %p.light %i.icon-wrench -- 2.11.0