mailr/app/views/messages/_header.html.haml
2012-07-10 22:10:06 +02:00

41 lines
1.1 KiB
Plaintext
Executable file

%div{:class=>"well",:style=>"padding: 7px 5pt;"}
%table{:class=>"header"}
%tbody
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'from_addr') + ':'
%td
= address_formatter(@from,:show)
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'to_addr') + ':'
%td
= address_formatter(@to,:show)
- if not @mail.cc.nil?
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'cc_addr') + ':'
%td
= address_formatter(@mail.Cc.to_s,:show)
- if not @mail.bcc.nil?
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'bcc_addr') + ':'
%td
= address_formatter(@mail.Bcc.to_s,:show)
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'subject') + ':'
%td
= subject_formatter(@message,:show)
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'date') + ':'
%td
= date_formatter(@date)
= hidden_field_tag 'uids[]', @message.uid
= hidden_field_tag 'source', 'show'
%pre{:class=>"header_raw",:style=>"display: none;"}
= @plain_header