gitlabhq/app/views/admin/groups/index.html.haml

38 lines
1.1 KiB
Plaintext
Raw Normal View History

%h3.page_title
Groups
%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"
%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"
%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!
- @groups.each do |group|
%tr
2012-12-10 04:14:05 +01:00
%td
%strong= link_to group.name, [:admin, group]
2013-02-07 11:42:52 +01:00
%td= group.description
2012-11-23 19:31:09 +01:00
%td= group.path
%td= group.projects.count
2012-12-10 04:14:05 +01:00
%td
= link_to group.owner_name, admin_user_path(group.owner)
%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"
= paginate @groups, theme: "admin"