mailr/app/views/messages/_header.html.haml
Wojciech Todryk 77c8d3e7d7 devel
2012-03-30 19:31:23 +02:00

40 lines
956 B
Plaintext
Executable file

%table{:class=>"header bottom-pix18"}
%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 @cc.nil?
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'cc_addr') + ':'
%td
= @cc.join('; ')
- if not @bcc.nil?
%tr
%td{:class=>"field_name"}
= humanize_attr(@message,'bcc_addr') + ':'
%td
= @bcc.join('; ')
%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