Commit 5bd5d09b83c21bca1d6cd534622f410f9b0da4de
1 parent
abff0399
Exists in
master
and in
4 other branches
Admin.user page: sort projects, add better confirm message for leaving team
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/views/admin/users/show.html.haml
| ... | ... | @@ -71,7 +71,7 @@ |
| 71 | 71 | .ui-box |
| 72 | 72 | %h5.title Projects (#{@projects.count}) |
| 73 | 73 | %ul.well-list |
| 74 | - - @projects.each do |project| | |
| 74 | + - @projects.sort_by(&:name_with_namespace).each do |project| | |
| 75 | 75 | %li |
| 76 | 76 | = link_to admin_project_path(project), class: dom_class(project) do |
| 77 | 77 | - if project.namespace |
| ... | ... | @@ -87,7 +87,7 @@ |
| 87 | 87 | = tm.project_access_human |
| 88 | 88 | = link_to edit_admin_project_member_path(project, tm.user), class: "btn btn-small" do |
| 89 | 89 | %i.icon-edit |
| 90 | - = link_to admin_project_member_path(project, tm.user), confirm: 'Are you sure?', method: :delete, class: "btn btn-small btn-remove" do | |
| 90 | + = 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 | |
| 91 | 91 | %i.icon-remove |
| 92 | 92 | %p.light |
| 93 | 93 | %i.icon-wrench | ... | ... |