summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassidy Dingenskirchen <admin@15318.de>2023-10-22 14:43:41 +0200
committerCassidy Dingenskirchen <admin@15318.de>2023-10-22 14:43:41 +0200
commit6686a16bbfe8fd2af7d8d0e95b7b083cdd26ca4b (patch)
tree291d3a6d70dfb9c9dcc37405550a20dea0c63cdd
parentf1d3d3ed934a87357e26d84f44daa4719b587749 (diff)
departure board: restyled followee checkin notice, add it for hafas too
-rw-r--r--templates/_departures_hafas.html.ep4
-rw-r--r--templates/_departures_iris.html.ep5
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/_departures_hafas.html.ep b/templates/_departures_hafas.html.ep
index f611d8e..58bdb02 100644
--- a/templates/_departures_hafas.html.ep
+++ b/templates/_departures_hafas.html.ep
@@ -36,6 +36,10 @@
</a>
<span class="dep-dest">
%= $result->destination
+ % for my $checkin (@{$checkin_by_train->{$result->id} // []}) {
+ <span class="followee-checkin">
+ <i class="material-icons tiny">people</i> <%= $checkin->{followee_name} %> → <%= $checkin->{arr_name} // '???' %>
+ </span>
% }
</span>
</li>
diff --git a/templates/_departures_iris.html.ep b/templates/_departures_iris.html.ep
index 237757c..2c47016 100644
--- a/templates/_departures_iris.html.ep
+++ b/templates/_departures_iris.html.ep
@@ -41,6 +41,11 @@
</a>
<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>
+ % }
</span>
</li>
% }