summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-08 20:11:49 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-08 20:11:49 +0300
commit5bd5d09b83c21bca1d6cd534622f410f9b0da4de (patch)
tree5f600672b0cd15d670c7ad5d27526b34e391aeee /app/views
parentabff03996ad59e25be52d51605f6ede698363ecb (diff)
downloadgitlab-ce-5bd5d09b83c21bca1d6cd534622f410f9b0da4de.tar.gz
Admin.user page: sort projects, add better confirm message for leaving team
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/users/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index b813f859a0b..6709b8f8a6b 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