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.
|
|
|
|
|
2013-01-30 15:40:43 +01:00
|
|
|
= link_to 'New Group', new_admin_group_path, class: "btn btn-small pull-right"
|
2012-10-02 18:01:40 +02:00
|
|
|
%br
|
|
|
|
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
|
|
|
|
= text_field_tag :name, params[:name], class: "xlarge"
|
2013-01-29 21:18:19 +01:00
|
|
|
= submit_tag "Search", class: "btn submit btn-primary"
|
2012-10-02 18:01:40 +02:00
|
|
|
|
|
|
|
%table
|
|
|
|
%thead
|
2012-12-11 02:39:05 +01:00
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
Name
|
|
|
|
%i.icon-sort-down
|
|
|
|
%th Path
|
2013-02-07 11:42:52 +01:00
|
|
|
%th Description
|
2012-12-11 02:39:05 +01:00
|
|
|
%th Projects
|
|
|
|
%th Owner
|
|
|
|
%th.cred Danger Zone!
|
2012-10-02 18:01:40 +02:00
|
|
|
|
|
|
|
- @groups.each do |group|
|
|
|
|
%tr
|
2012-12-10 04:14:05 +01:00
|
|
|
%td
|
|
|
|
%strong= link_to group.name, [:admin, group]
|
2013-03-05 08:27:06 +01:00
|
|
|
%td= truncate group.description
|
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
|
2013-02-17 11:00:02 +01:00
|
|
|
= link_to group.owner_name, admin_user_path(group.owner)
|
2012-12-03 19:14:05 +01:00
|
|
|
%td.bgred
|
2013-02-07 11:42:52 +01:00
|
|
|
= link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
|
2012-10-02 18:01:40 +02:00
|
|
|
= paginate @groups, theme: "admin"
|