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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- if pagination
|
||||
- if Message.pub.count > 20
|
||||
- if Message.readable_for(current_user).count > 20
|
||||
= items_per_page
|
||||
= pagination_links_remote message_threads
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue