From 9b256f0f0245e597f21823b7078ee1f17fa9911c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 15 Jun 2024 17:50:56 +0200 Subject: remove service / sb_template selection; hardcode DBF with variable hafas flag --- templates/_checked_in.html.ep | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index b42792e..19a94bb 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -111,12 +111,7 @@ % }
- % if ($user->{sb_template}) { - <%= $journey->{arr_name} %>
- % } - % else { - <%= $journey->{arr_name} %>
- % } + <%= $journey->{arr_name} %>
% if ($journey->{real_arrival}->epoch) { <%= $journey->{real_arrival}->strftime('%H:%M') %> % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { @@ -358,12 +353,7 @@
Ziel ändern? - % if ($user->{sb_template}) { -
- % } - % else { -

- % } +

% for my $station (@{$journey->{route_after}}) { % my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}); @@ -387,16 +377,9 @@ % } - % if ($user->{sb_template}) { - train - % } - % } - % if ($user->{sb_template}) { -
- % } - % else { -

+ <%= $journey->{is_hafas} ? 'directions' : 'train' %> % } +