Commit 0d3b75845ae18475f74eaea0692ab532ce1ffd49

Authored by Dmitriy Zaporozhets
2 parents 1efeb1b5 3ae7a45d

Merge pull request #3017 from jojosch/owner-link-admin

Fix link to owner of group and team in admin interface
app/views/admin/groups/index.html.haml
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 %td= group.path 28 %td= group.path
29 %td= group.projects.count 29 %td= group.projects.count
30 %td 30 %td
31 - = link_to group.owner_name, admin_user_path(group.owner_id) 31 + = link_to group.owner_name, admin_user_path(group.owner)
32 %td.bgred 32 %td.bgred
33 = link_to 'Rename', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small" 33 = link_to 'Rename', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
34 = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" 34 = link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
app/views/admin/teams/index.html.haml
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 %td= team.projects.count 30 %td= team.projects.count
31 %td= team.members.count 31 %td= team.members.count
32 %td 32 %td
33 - = link_to team.owner.name, admin_user_path(team.owner_id) 33 + = link_to team.owner.name, admin_user_path(team.owner)
34 %td.bgred 34 %td.bgred
35 = link_to 'Rename', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small" 35 = link_to 'Rename', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small"
36 = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove" 36 = link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"