Improve message threads (by @paroga)
This commit is contained in:
parent
673448a5ac
commit
6b32d0c960
13 changed files with 89 additions and 27 deletions
|
|
@ -0,0 +1,11 @@
|
|||
- message_threads = Message.pub.threads.where(group: group).order(created_at: :desc).limit(5)
|
||||
- unless message_threads.empty?
|
||||
%section
|
||||
%h3
|
||||
= name
|
||||
%small
|
||||
= link_to message_thread_path(id) do
|
||||
= t '.show_message_threads'
|
||||
%i.icon.icon-chevron-right
|
||||
= render 'message_threads', message_threads: message_threads, pagination: false
|
||||
= link_to_top
|
||||
Loading…
Add table
Add a link
Reference in a new issue