Add messagegroup
Messagegroups are a new kind of group. Every user can join and leave such a group on her own. They are useful to create topics for mails. E.g. if there is a weekly newsletter we can create a new messagegroup for it and every user which is interested in receiving the newsletter can join the corresponding group.
This commit is contained in:
parent
b30b4e46d8
commit
01cf6431a9
15 changed files with 172 additions and 9 deletions
|
|
@ -0,0 +1,18 @@
|
|||
- if Messagegroup.count > 20
|
||||
= items_per_page
|
||||
= pagination_links_remote @messagegroups
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th= t '.name'
|
||||
%th= t '.members'
|
||||
%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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue