Improve message threads (by @paroga)

This commit is contained in:
wvengen 2016-03-04 17:24:28 +01:00
parent 673448a5ac
commit 6b32d0c960
13 changed files with 89 additions and 27 deletions

View file

@ -3,5 +3,8 @@
- content_for :actionbar do
= link_to t('.messages'), messages_path, class: 'btn'
= link_to t('.new'), new_message_path, class: 'btn btn-primary'
#message_threads
= render 'message_threads', message_threads: @message_threads, pagination: true
= render 'groupmessage_threads', group: nil, name: t('.other'), id: 0
- for group in @groups
= render 'groupmessage_threads', group: group, name: group.name, id: group.id