Extract message system to plugin.
This commit is contained in:
parent
fe0b17cdb0
commit
7556c753d0
45 changed files with 298 additions and 45 deletions
14
lib/foodsoft_messages/app/views/messages/_messages.html.haml
Normal file
14
lib/foodsoft_messages/app/views/messages/_messages.html.haml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
- if pagination
|
||||
- if Message.public.count > 20
|
||||
= items_per_page
|
||||
= pagination_links_remote messages
|
||||
|
||||
- unless messages.empty?
|
||||
%table.table.table-striped
|
||||
%tbody
|
||||
- for message in messages
|
||||
%tr
|
||||
%td= format_subject(message, 130)
|
||||
%td= h(message.sender_name)
|
||||
%td= format_time(message.created_at)
|
||||
%td= link_to t('.reply'), new_message_path(:message => {:reply_to => message.id}), class: 'btn'
|
||||
Loading…
Add table
Add a link
Reference in a new issue