From 379da61de4da2d74e458dcfa3f9cfc1e02cb063e Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 17 Aug 2023 19:47:57 +0200 Subject: departures: use hafas/iris icons --- templates/departures.html.ep | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'templates') diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 3b63016..3a2516f 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -1,29 +1,22 @@
+ <%= param('hafas') ? 'directions' : 'train' %> <%= $station %> % for my $related_station (sort { $a->{name} cmp $b->{name} } @{$related_stations}) { -
<%= $related_station->{name} %> +
+ <%= $related_station->{name} %> % }
% if ($api_link) {
- % if (param('hafas')) { - -
- → Nahverkehr ← -
- % } - % else { -
- → Schienenverkehr ← -
- - % } +
+ % if (param('hafas')) { + zum Schienenverkehr + % } + % else { + zum Nahverkehr + % } +
% } % my $have_connections = 0; -- cgit v1.2.3