From 8ee2d7149baa58ea225cb40e0f95030ee21f1081 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 13 Mar 2023 21:34:03 +0100 Subject: Split up Helper plugin and added Views instead --- templates/displayheaders/_folders.html.ep | 2 +- templates/displayheaders/_main_table.html.ep | 4 ++-- templates/not_found.production.html.ep | 16 ++++++++++++++++ templates/not_found_.html.ep | 16 ---------------- templates/webmail/readmail.html.ep | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 templates/not_found.production.html.ep delete mode 100644 templates/not_found_.html.ep (limited to 'templates') diff --git a/templates/displayheaders/_folders.html.ep b/templates/displayheaders/_folders.html.ep index be5bdd9..b341768 100644 --- a/templates/displayheaders/_folders.html.ep +++ b/templates/displayheaders/_folders.html.ep @@ -23,7 +23,7 @@

<%= l('[_1] of [_2] messages', $pgn->{this_page}[1] - $pgn->{this_page}[0], $pgn->{total_items}) %>\ <%= l(', [_1] new', $total_new_mails) if $total_new_mails > 0 =%> - <%= l(' - mailbox size: [_1]', print_sizes10 $total_size) if $total_size %> + <%= l(' - mailbox size: [_1]', $v->print_sizes10($total_size)) if $total_size %>

diff --git a/templates/displayheaders/_main_table.html.ep b/templates/displayheaders/_main_table.html.ep index 5430c15..06bbbfc 100644 --- a/templates/displayheaders/_main_table.html.ep +++ b/templates/displayheaders/_main_table.html.ep @@ -81,7 +81,7 @@ -->
- % my $date = parse_iso_date $msg->{head}{date}; + % my $date = $v->parse_iso_date($msg->{head}{date}); %= join('/', $date->{mday}, $date->{month}, $date->{year}) . " $date->{hour}:$date->{min}";
@@ -98,7 +98,7 @@ - %= print_sizes10 $msg->{byte_size}; + %= $v->print_sizes10($msg->{byte_size}); diff --git a/templates/not_found.production.html.ep b/templates/not_found.production.html.ep new file mode 100644 index 0000000..b96e46e --- /dev/null +++ b/templates/not_found.production.html.ep @@ -0,0 +1,16 @@ + + + + Not Found + + + +

+ Not the page you are looking for. +

+

+ Go back or go to the <%= link_to 'start page' => 'login' %>. +

+ + + diff --git a/templates/not_found_.html.ep b/templates/not_found_.html.ep deleted file mode 100644 index b96e46e..0000000 --- a/templates/not_found_.html.ep +++ /dev/null @@ -1,16 +0,0 @@ - - - - Not Found - - - -

- Not the page you are looking for. -

-

- Go back or go to the <%= link_to 'start page' => 'login' %>. -

- - - diff --git a/templates/webmail/readmail.html.ep b/templates/webmail/readmail.html.ep index 5bdc27e..529bbe6 100644 --- a/templates/webmail/readmail.html.ep +++ b/templates/webmail/readmail.html.ep @@ -5,7 +5,7 @@

Read Mail

-%= $c->render_mail->format_mail($msg) +%= $v->format_mail($msg)