2016-02-17 12:26:21 +01:00
|
|
|
- if Messagegroup.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @messagegroups
|
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
2016-03-07 22:17:18 +01:00
|
|
|
%th= Messagegroup.human_attribute_name :name
|
|
|
|
%th= Messagegroup.human_attribute_name :user_tokens
|
2016-02-17 12:26:21 +01:00
|
|
|
%th= t 'ui.actions'
|
|
|
|
%tbody
|
|
|
|
- for messagegroup in @messagegroups
|
|
|
|
%tr
|
|
|
|
%td= link_to messagegroup.name, [:admin, messagegroup]
|
|
|
|
%td= messagegroup.users.size
|
|
|
|
%td
|
|
|
|
= link_to t('ui.edit'), edit_admin_messagegroup_path(messagegroup), class: 'btn btn-mini'
|
|
|
|
= link_to t('ui.delete'), [:admin, messagegroup], :data => {:confirm => t('admin.confirm', name: messagegroup.name)},
|
|
|
|
:method => :delete, class: 'btn btn-mini btn-danger'
|