Show private messages in foodsofts index pages (fixes #106)

This commit is contained in:
Patrick Gansterer 2018-12-20 16:59:37 +01:00
parent f8148e7d30
commit 722bb474d1
7 changed files with 10 additions and 8 deletions

View file

@ -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

View file

@ -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