From d23bfb57e201f70329e896fb07429b4913e5148a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 31 Aug 2022 18:09:12 +0200 Subject: train details: replace HAFAS 'Information'/'Störung' messages with icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/_train_details.html.ep | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 7ef2138..bcef76c 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -173,16 +173,22 @@ % else { %= $pair->[0]->strftime('%H:%M') % } + +%= $pair->[1] + % } % else { +% if ($pair->[1]{icon}) { + <%= $pair->[1]{icon} %> +% } %= $pair->[0] % if (length($pair->[0]) > 25) {
% } + +%= $pair->[1]{text} + % } - -%= $pair->[1] - % } % if ($departure->{route_info}) { -- cgit v1.2.3