diff options
Diffstat (limited to 'templates/headers/_display_headers.html.ep')
-rw-r--r-- | templates/headers/_display_headers.html.ep | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep index 42f927c..4dd36a1 100644 --- a/templates/headers/_display_headers.html.ep +++ b/templates/headers/_display_headers.html.ep @@ -66,9 +66,9 @@ % foreach my $msgnum ($first_item .. $last_item) { % my $msg = $msgs->[$msgnum - $first_item]; - %= tag tr => (class => $msg->{new} ? 'new-mail' : '') => (id => $msg->{mid}) => begin + %= tag tr => (class => $msg->{unread} ? 'new-mail' : '') => (id => $msg->{message_handle}) => begin <td class="hide-small"> - %= $msgnum + %= $msgnum + 1 </td> <td> @@ -76,7 +76,7 @@ <!-- <div class="pure-u-1-4"> - %# ucfirst($msg->{is_multipart} ? l('yes') : l('no')); + %# ucfirst($msg->{head}{mime}{content_maintype} eq 'multipart' ? l('yes') : l('no')); </div> --> @@ -86,22 +86,23 @@ </div> <div class="pure-u-16-24 pure-u-md-6-24"> - %= $msg->{head}{from}[0]{name} || $msg->{head}{from}[0]{email}; + <%= $msg->{head}{sender}[0]{display_name} || $msg->{head}{sender}[0]{address} || + $msg->{head}{from}[0]{display_name} || $msg->{head}{from}[0]{address}; %> </div> <div class="pure-u-20-24 pure-u-md-12-24"> - %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{mid}} + %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{message_handle}} </div> <div class="pure-u-4-24 pure-u-md-2-24"> - %= print_sizes10 $msg->{size}; + %= print_sizes10 $msg->{byte_size}; </div> </div> </td> <td> - %= check_box mail => $msg->{mid} => (form => 'move-mail') + %= check_box mail => $msg->{message_handle} => (form => 'move-mail') </td> % end |