gitlab-org--gitlab-foss/app/views/admin/groups/index.html.haml

42 lines
1.2 KiB
Plaintext
Raw Normal View History

%h3.page-title
2013-05-06 18:48:28 +00:00
Groups (#{@groups.total_count})
= link_to 'New Group', new_admin_group_path, class: "btn btn-new pull-right"
%p.light
Group allows you to keep projects organized.
Use groups for uniting related projects.
%hr
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
.form-group
= text_field_tag :name, params[:name], class: "form-control input-mn-300"
2013-01-29 20:18:19 +00:00
= submit_tag "Search", class: "btn submit btn-primary"
2013-05-06 18:48:28 +00:00
%hr
2013-05-06 18:48:28 +00:00
%ul.bordered-list
- @groups.each do |group|
2013-05-06 18:48:28 +00:00
%li
.clearfix
.pull-right.prepend-top-10
= link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
= link_to 'Destroy', [:admin, group], data: {confirm: "REMOVE #{group.name}? Are you sure?"}, method: :delete, class: "btn btn-small btn-remove"
2013-05-06 18:48:28 +00:00
%h4
= link_to [:admin, group] do
%i.icon-folder-close
2013-05-06 18:48:28 +00:00
= group.name
→
%span.monospace
%strong #{group.path}/
.clearfix
%p
= truncate group.description, length: 150
.clearfix
%p.light
#{pluralize(group.members.size, 'member')}, #{pluralize(group.projects.count, 'project')}
2013-05-06 18:48:28 +00:00
= paginate @groups, theme: "gitlab"