2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2013-05-06 14:48:28 -04:00
|
|
|
Groups (#{@groups.total_count})
|
2013-08-01 15:35:40 -04:00
|
|
|
= link_to 'New Group', new_admin_group_path, class: "btn btn-new pull-right"
|
2014-02-15 07:31:01 -05:00
|
|
|
|
|
|
|
%p.light
|
|
|
|
Group allows you to keep projects organized.
|
|
|
|
Use groups for uniting related projects.
|
|
|
|
|
|
|
|
%hr
|
2012-10-02 12:01:40 -04:00
|
|
|
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
|
2014-01-04 12:27:09 -05:00
|
|
|
.form-group
|
2014-01-06 07:34:41 -05:00
|
|
|
= text_field_tag :name, params[:name], class: "form-control input-mn-300"
|
2013-01-29 15:18:19 -05:00
|
|
|
= submit_tag "Search", class: "btn submit btn-primary"
|
2012-10-02 12:01:40 -04:00
|
|
|
|
2013-05-06 14:48:28 -04:00
|
|
|
%hr
|
2012-10-02 12:01:40 -04:00
|
|
|
|
2013-05-06 14:48:28 -04:00
|
|
|
%ul.bordered-list
|
2012-10-02 12:01:40 -04:00
|
|
|
- @groups.each do |group|
|
2013-05-06 14:48:28 -04: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"
|
2013-12-10 14:33:21 -05:00
|
|
|
= link_to 'Destroy', [:admin, group], data: {confirm: "REMOVE #{group.name}? Are you sure?"}, method: :delete, class: "btn btn-small btn-remove"
|
2013-05-06 14:48:28 -04:00
|
|
|
|
|
|
|
%h4
|
|
|
|
= link_to [:admin, group] do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-folder
|
2013-05-06 14:48:28 -04:00
|
|
|
= group.name
|
|
|
|
|
|
|
|
→
|
|
|
|
%span.monospace
|
|
|
|
%strong #{group.path}/
|
|
|
|
.clearfix
|
|
|
|
%p
|
|
|
|
= truncate group.description, length: 150
|
2014-02-15 07:31:01 -05:00
|
|
|
.clearfix
|
|
|
|
%p.light
|
|
|
|
#{pluralize(group.members.size, 'member')}, #{pluralize(group.projects.count, 'project')}
|
|
|
|
|
2013-05-06 14:48:28 -04:00
|
|
|
|
2013-04-06 15:32:23 -04:00
|
|
|
= paginate @groups, theme: "gitlab"
|