Extract message system to plugin.
This commit is contained in:
parent
fe0b17cdb0
commit
7556c753d0
45 changed files with 298 additions and 45 deletions
21
lib/foodsoft_messages/app/views/messages/show.haml
Normal file
21
lib/foodsoft_messages/app/views/messages/show.haml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
- title t('.title')
|
||||
|
||||
%div{:style => "width:40em"}
|
||||
%table{:style => "width:25em"}
|
||||
%tr
|
||||
%td= t '.from'
|
||||
%td=h @message.sender_name
|
||||
%tr
|
||||
%td= t '.subject'
|
||||
%td
|
||||
%b=h @message.subject
|
||||
%tr
|
||||
%td= t '.sent_on'
|
||||
%td= format_time(@message.created_at)
|
||||
%hr/
|
||||
%p= simple_format(h(@message.body))
|
||||
%hr/
|
||||
%p
|
||||
= link_to t('.reply'), new_message_path(:message => {:reply_to => @message.id}), class: 'btn'
|
||||
|
|
||||
= link_to t('.all_messages'), messages_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue