From fcf5549584b69e62b6c2f0eb919f6799c7904211 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Fri, 10 Mar 2023 13:54:57 +0100 Subject: Proper recursive rendering of mails to html 1. Added raw mode to model 2. Added raw route 3. Moved readmail view parts to RenderMail plugin 4. Renamed displayheaders partial templates --- templates/headers/_display_headers.html.ep | 112 ----------------------------- 1 file changed, 112 deletions(-) delete mode 100644 templates/headers/_display_headers.html.ep (limited to 'templates/headers/_display_headers.html.ep') diff --git a/templates/headers/_display_headers.html.ep b/templates/headers/_display_headers.html.ep deleted file mode 100644 index 6c00d0b..0000000 --- a/templates/headers/_display_headers.html.ep +++ /dev/null @@ -1,112 +0,0 @@ -% my $sort_param = begin - % my $param = shift; - - %= link_to url_with->query(sort => $param eq (param('sort') || '') ? '!' . $param : $param) => begin - % no warnings qw(experimental::smartmatch); - %= do { given (param('sort')) { '↑' when ($param); '↓' when ('!' . $param) } } - %= ucfirst l $param; - % end - -% end - - - - - - - - -% } - -
- %= $sort_param->('subject'); -
- - - - - - - - - - - - % foreach my $msgnum ($pgn->{first_item} .. $pgn->{last_item}) { - % my $msg = $msgs->[$msgnum - $pgn->{first_item}]; - - %= tag tr => (class => $msg->{unread} ? 'new-mail' : '') => (id => $msg->{message_handle}) => begin - - - - - - - - % end - - % } - - -
- # - -
- - %# $sort_param->('status'); - -
- %= $sort_param->('date'); -
- -% if ($folder ne "SENT") { -
- %= $sort_param->('sender'); -
-% } -% else { -
- %= link_to url_with->query(sort => param('sort') ne '!sender' ? 'sender' : '!sender' ) => begin - %= ucfirst l 'recipient' - % if (param('sort') eq "sender") { - %= image '/down.gif' => (width => 12) => (height => 12) => (border => 0) => (alt => 'v') - % } - % elsif (param('sort') eq "recipient_rev") { - %= image '/up.gif' => (width => 12) => (height => 12) => (border => 0) => (alt => '^') - % } - % end - - %= $sort_param->('size'); - - -
- %= $msgnum + 1 - -
- - - -
- % my $date = parse_iso_date $msg->{head}{date}; - %= join('/', $date->{mday}, $date->{month}, $date->{year}) . " $date->{hour}:$date->{min}"; -
- -
- <%= $msg->{head}{sender}[0]{display_name} || $msg->{head}{sender}[0]{address} || - $msg->{head}{from}[0]{display_name} || $msg->{head}{from}[0]{address}; %> -
- -
- %= link_to $msg->{head}{subject} || '_' => read => {id => $msg->{message_handle}} -
- -
-
- %= print_sizes10 $msg->{byte_size}; - - %= check_box mail => $msg->{message_handle} => (form => 'move-mail') -
-- cgit v1.2.3