foodsoft/plugins/messages/app/views/messages/thread.haml

18 lines
560 B
Text
Raw Normal View History

2016-03-04 17:24:28 +01:00
- thread_message = @messages.first
- if thread_message.group
- title thread_message.subject + ' (' + thread_message.group.name + ')'
- else
- title thread_message.subject
- for message in @messages
.panel.panel-default{:style => "width:40em"}
.panel-heading
%b= h(message.sender_name)
= format_time(message.created_at)
.panel-body= simple_format(h(message.body))
%p
= link_to t('.reply'), new_message_path(:message => {:reply_to => thread_message.id}), class: 'btn'
|
= link_to t('.all_message_threads'), message_threads_path