foodsoft/lib/foodsoft_messages/app/views/messages/_messages.html.haml

15 lines
452 B
Plaintext
Raw Normal View History

2012-10-08 21:52:03 +02:00
- if pagination
- if Message.public.count > 20
= items_per_page
= pagination_links_remote messages
2011-05-16 10:34:14 +02:00
- unless messages.empty?
%table.table.table-striped
2009-01-15 20:10:50 +01:00
%tbody
2011-05-16 10:34:14 +02:00
- for message in messages
%tr
2012-10-08 21:52:03 +02:00
%td= format_subject(message, 130)
%td= h(message.sender_name)
2009-01-15 20:10:50 +01:00
%td= format_time(message.created_at)
%td= link_to t('.reply'), new_message_path(:message => {:reply_to => message.id}), class: 'btn'