mirror of
https://github.com/derf/travelynx
synced 2024-12-04 10:19:09 +00:00
departures: use hafas/iris icons
This commit is contained in:
parent
77238628cc
commit
379da61de4
1 changed files with 10 additions and 17 deletions
|
@ -1,29 +1,22 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12 center-align">
|
<div class="col s12 center-align">
|
||||||
|
<i class="tiny material-icons "><%= param('hafas') ? 'directions' : 'train' %></i>
|
||||||
<b><%= $station %></b>
|
<b><%= $station %></b>
|
||||||
% for my $related_station (sort { $a->{name} cmp $b->{name} } @{$related_stations}) {
|
% for my $related_station (sort { $a->{name} cmp $b->{name} } @{$related_stations}) {
|
||||||
<br/><%= $related_station->{name} %>
|
<br/>+ <%= $related_station->{name} %>
|
||||||
% }
|
% }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
% if ($api_link) {
|
% if ($api_link) {
|
||||||
<div class="row">
|
<div class="row">
|
||||||
% if (param('hafas')) {
|
<div class="col s12 center-align">
|
||||||
<div class="col s12 center-align">
|
% if (param('hafas')) {
|
||||||
<a href="<%= $api_link %>">Schienenverkehr</a>
|
<a href="<%= $api_link %>">zum Schienenverkehr</a>
|
||||||
</div>
|
% }
|
||||||
<div class="col s12 center-align">
|
% else {
|
||||||
→ Nahverkehr ←
|
<a href="<%= $api_link %>">zum Nahverkehr</a>
|
||||||
</div>
|
% }
|
||||||
% }
|
</div>
|
||||||
% else {
|
|
||||||
<div class="col s12 center-align">
|
|
||||||
→ Schienenverkehr ←
|
|
||||||
</div>
|
|
||||||
<div class="col s12 center-align">
|
|
||||||
<a href="<%= $api_link %>">Nahverkehr</a>
|
|
||||||
</div>
|
|
||||||
% }
|
|
||||||
</div>
|
</div>
|
||||||
% }
|
% }
|
||||||
% my $have_connections = 0;
|
% my $have_connections = 0;
|
||||||
|
|
Loading…
Reference in a new issue