2012-10-02 18:01:40 +02:00
|
|
|
%h3.page_title
|
|
|
|
Groups
|
2012-10-22 22:37:50 +02:00
|
|
|
%small
|
|
|
|
allows you to keep projects organized.
|
|
|
|
Use groups for uniting related projects.
|
|
|
|
|
2012-10-02 18:01:40 +02:00
|
|
|
= link_to 'New Group', new_admin_group_path, class: "btn small right"
|
|
|
|
%br
|
|
|
|
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
|
|
|
|
= text_field_tag :name, params[:name], class: "xlarge"
|
|
|
|
= submit_tag "Search", class: "btn submit primary"
|
|
|
|
|
|
|
|
%table
|
|
|
|
%thead
|
2012-12-10 04:14:05 +01:00
|
|
|
%th
|
|
|
|
Name
|
|
|
|
%i.icon-sort-down
|
2012-11-23 19:31:09 +01:00
|
|
|
%th Path
|
2012-10-02 18:01:40 +02:00
|
|
|
%th Projects
|
2012-12-10 04:14:05 +01:00
|
|
|
%th Owner
|
2012-10-02 18:01:40 +02:00
|
|
|
%th.cred Danger Zone!
|
|
|
|
|
|
|
|
- @groups.each do |group|
|
|
|
|
%tr
|
2012-12-10 04:14:05 +01:00
|
|
|
%td
|
|
|
|
%strong= link_to group.name, [:admin, group]
|
2012-11-23 19:31:09 +01:00
|
|
|
%td= group.path
|
2012-10-02 18:01:40 +02:00
|
|
|
%td= group.projects.count
|
2012-12-10 04:14:05 +01:00
|
|
|
%td
|
|
|
|
= link_to group.owner_name, admin_user_path(group.owner_id)
|
2012-12-03 19:14:05 +01:00
|
|
|
%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"
|
2012-10-02 18:01:40 +02:00
|
|
|
= paginate @groups, theme: "admin"
|