summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-17 19:47:57 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-17 19:47:57 +0200
commit379da61de4da2d74e458dcfa3f9cfc1e02cb063e (patch)
tree605d315f9512a95f92a23f218689c56f8a4641a5
parent77238628cc9da8582ec718216beb45adb2d2a28d (diff)
departures: use hafas/iris icons
-rw-r--r--templates/departures.html.ep27
1 files changed, 10 insertions, 17 deletions
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 @@
<div class="row">
<div class="col s12 center-align">
+ <i class="tiny material-icons "><%= param('hafas') ? 'directions' : 'train' %></i>
<b><%= $station %></b>
% for my $related_station (sort { $a->{name} cmp $b->{name} } @{$related_stations}) {
- <br/><%= $related_station->{name} %>
+ <br/>+ <%= $related_station->{name} %>
% }
</div>
</div>
% if ($api_link) {
<div class="row">
- % if (param('hafas')) {
- <div class="col s12 center-align">
- <a href="<%= $api_link %>">Schienenverkehr</a>
- </div>
- <div class="col s12 center-align">
- → Nahverkehr ←
- </div>
- % }
- % else {
- <div class="col s12 center-align">
- → Schienenverkehr ←
- </div>
- <div class="col s12 center-align">
- <a href="<%= $api_link %>">Nahverkehr</a>
- </div>
- % }
+ <div class="col s12 center-align">
+ % if (param('hafas')) {
+ <a href="<%= $api_link %>">zum Schienenverkehr</a>
+ % }
+ % else {
+ <a href="<%= $api_link %>">zum Nahverkehr</a>
+ % }
+ </div>
</div>
% }
% my $have_connections = 0;