mailr/app/views/messages/_header.html.haml

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-07-10 22:10:06 +02:00
%div{:class=>"well",:style=>"padding: 7px 5pt;"}
%table{:class=>"header"}
%tbody
2012-03-24 13:23:34 +01:00
%tr
%td{:class=>"field_name"}
2012-07-10 22:10:06 +02:00
= humanize_attr(@message,'from_addr') + ':'
2012-03-24 13:23:34 +01:00
%td
2012-07-10 22:10:06 +02:00
= address_formatter(@from,:show)
2012-03-24 13:23:34 +01:00
%tr
%td{:class=>"field_name"}
2012-07-10 22:10:06 +02:00
= humanize_attr(@message,'to_addr') + ':'
2012-03-24 13:23:34 +01:00
%td
2012-07-10 22:10:06 +02:00
= 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)
2012-03-24 13:23:34 +01:00
= hidden_field_tag 'uids[]', @message.uid
= hidden_field_tag 'source', 'show'
%pre{:class=>"header_raw",:style=>"display: none;"}
= @plain_header