From 19936c51bd4ac85c45e583f69f327e514dba99d4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 5 May 2019 01:55:56 +0200 Subject: app: add linetype data element --- templates/app.html.ep | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'templates') diff --git a/templates/app.html.ep b/templates/app.html.ep index e29caef..abfd79a 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -31,18 +31,6 @@ % for my $stop (@{$departure->{via} // []}) { % $via_cur++; % $route_str .= $stop . ($via_cur < $via_max ? ' - ' : q{}); -% } -
  • {is_cancelled} or $departure->{departure_is_cancelled}) { -% $extraclasses .= ' cancelled'; - class="cancelled"> -% } -% else { - > % } % my $linetype = 'bahn'; % if ( $departure->{train_type} eq 'S' ) { @@ -59,7 +47,19 @@ % or $departure->{train_type} eq 'NJ') { % $linetype = 'ext'; % } -% +
  • {is_cancelled} or $departure->{departure_is_cancelled}) { +% $extraclasses .= ' cancelled'; + class="cancelled"> +% } +% else { + > +% }
    % if ($departure->{train_type} and $departure->{train_no}) { %= $departure->{train_type} -- cgit v1.2.3