Make admin sorting more obvious

This commit is contained in:
Dmitriy Zaporozhets 2012-12-10 06:14:05 +03:00
parent 2b79706d6d
commit bf13579b92
8 changed files with 68 additions and 20 deletions

View file

@ -12,16 +12,22 @@
%table
%thead
%th Name
%th
Name
%i.icon-sort-down
%th Path
%th Projects
%th Owner
%th.cred Danger Zone!
- @groups.each do |group|
%tr
%td= link_to group.name, [:admin, group]
%td
%strong= link_to group.name, [:admin, group]
%td= group.path
%td= group.projects.count
%td
= link_to group.owner_name, admin_user_path(group.owner_id)
%td.bgred
= link_to 'Rename', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn small"
= link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn small danger"