Commit 5bd5d09b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Admin.user page: sort projects, add better confirm message for leaving team

parent abff0399
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
.ui-box .ui-box
%h5.title Projects (#{@projects.count}) %h5.title Projects (#{@projects.count})
%ul.well-list %ul.well-list
- @projects.each do |project| - @projects.sort_by(&:name_with_namespace).each do |project|
%li %li
= link_to admin_project_path(project), class: dom_class(project) do = link_to admin_project_path(project), class: dom_class(project) do
- if project.namespace - if project.namespace
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
= tm.project_access_human = tm.project_access_human
= link_to edit_admin_project_member_path(project, tm.user), class: "btn btn-small" do = link_to edit_admin_project_member_path(project, tm.user), class: "btn btn-small" do
%i.icon-edit %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 %i.icon-remove
%p.light %p.light
%i.icon-wrench %i.icon-wrench
......
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