departures: use hafas/iris icons

This commit is contained in:
Birte Kristina Friesel 2023-08-17 19:47:57 +02:00
parent 77238628cc
commit 379da61de4
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -1,30 +1,23 @@
<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">
<div class="col s12 center-align">
% if (param('hafas')) {
<div class="col s12 center-align">
<a href="<%= $api_link %>">Schienenverkehr</a>
</div>
<div class="col s12 center-align">
→ Nahverkehr ←
</div>
<a href="<%= $api_link %>">zum Schienenverkehr</a>
% }
% else {
<div class="col s12 center-align">
→ Schienenverkehr ←
</div>
<div class="col s12 center-align">
<a href="<%= $api_link %>">Nahverkehr</a>
</div>
<a href="<%= $api_link %>">zum Nahverkehr</a>
% }
</div>
</div>
% }
% my $have_connections = 0;
% if ($user_status->{checked_in}) {