Show private messages in foodsofts index pages (fixes #106)
This commit is contained in:
parent
f8148e7d30
commit
722bb474d1
7 changed files with 10 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
- message_threads = Message.pub.threads.where(group: group).order(created_at: :desc).limit(5)
|
||||
- message_threads = Message.readable_for(current_user).threads.where(group: group).order(created_at: :desc).limit(5)
|
||||
- unless message_threads.empty?
|
||||
%section
|
||||
%h3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue