2012-10-15 21:19:17 +02:00
|
|
|
- if Workgroup.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @workgroups
|
|
|
|
%table.table.table-striped
|
2009-01-13 19:01:56 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Mitglieder
|
2009-02-02 16:35:43 +01:00
|
|
|
%th Zugriff auf
|
2012-10-15 21:19:17 +02:00
|
|
|
%th Aktionen
|
2009-01-13 19:01:56 +01:00
|
|
|
%tbody
|
|
|
|
- for workgroup in @workgroups
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
2009-01-13 19:01:56 +01:00
|
|
|
%td= link_to workgroup.name, [:admin, workgroup]
|
|
|
|
%td= workgroup.users.size
|
2009-02-02 16:35:43 +01:00
|
|
|
%td= format_roles(workgroup)
|
2009-01-13 19:01:56 +01:00
|
|
|
%td
|
2012-10-15 21:19:17 +02:00
|
|
|
= link_to "Bearbeiten", edit_admin_workgroup_path(workgroup), class: 'btn btn-mini'
|
|
|
|
= link_to "Löschen", [:admin, workgroup], :confirm => 'Willst du ' + workgroup.name + ' wirklich löschen?',
|
|
|
|
:method => :delete, class: 'btn btn-mini btn-danger'
|