summaryrefslogtreecommitdiff
path: root/templates/_departures_iris.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_departures_iris.html.ep')
-rw-r--r--templates/_departures_iris.html.ep24
1 files changed, 15 insertions, 9 deletions
diff --git a/templates/_departures_iris.html.ep b/templates/_departures_iris.html.ep
index 2c47016..332ef1c 100644
--- a/templates/_departures_iris.html.ep
+++ b/templates/_departures_iris.html.ep
@@ -22,7 +22,7 @@
data-train="<%= $result->train_id %>"
data-ts="<%= ($result->sched_departure // $result->departure)->epoch %>"
>
- <span class="dep-time">
+ <a class="dep-time" href="#">
% if ($result->departure_hidden) {
(<%= $result->departure->strftime('%H:%M') %>)
% }
@@ -35,16 +35,22 @@
% elsif (not $result->has_realtime and $result->start->epoch < $now_epoch) {
<i class="material-icons" aria-label="Keine Echtzeitdaten vorhanden" style="font-size: 16px;">gps_off</i>
% }
- </span>
- <a class="dep-line <%= (split(/ /, $result->line))[0] %>">
- %= $result->line
</a>
+ <span class="dep-line <%= (split(/ /, $result->line))[0] %>">
+ %= $result->line
+ </span>
<span class="dep-dest">
- %= $result->destination
- % for my $checkin (@{$checkin_by_train->{$result->train_id} // []}) {
- <span class="followee-checkin">
- <i class="material-icons tiny">people</i> <%= $checkin->{followee_name} %> → <%= $checkin->{arr_name} // '???' %>
- </span>
+ % if ($result->is_cancelled) {
+ Fahrt nach <%= $result->destination %> entfällt
+ % }
+ % else {
+ %= $result->destination
+ % for my $checkin (@{$checkin_by_train->{$result->train_id} // []}) {
+ <span class="followee-checkin">
+ <i class="material-icons tiny">people</i>
+ <%= $checkin->{followee_name} %> → <%= $checkin->{arr_name} // '???' %>
+ </span>
+ % }
% }
</span>
</li>