summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorCassidy Dingenskirchen <admin@15318.de>2023-10-22 16:16:41 +0200
committerCassidy Dingenskirchen <admin@15318.de>2023-10-22 16:16:41 +0200
commit0504f1adcd12c573ab805894b96a7658e2cd74fa (patch)
tree1c322eb9210db30a54104277e61e66e1bc7caacb /templates
parent6686a16bbfe8fd2af7d8d0e95b7b083cdd26ca4b (diff)
departure board: some more styling consistency
Diffstat (limited to 'templates')
-rw-r--r--templates/_departures_hafas.html.ep22
-rw-r--r--templates/_departures_iris.html.ep24
2 files changed, 29 insertions, 17 deletions
diff --git a/templates/_departures_hafas.html.ep b/templates/_departures_hafas.html.ep
index 58bdb02..a10594e 100644
--- a/templates/_departures_hafas.html.ep
+++ b/templates/_departures_hafas.html.ep
@@ -22,7 +22,7 @@
data-train="<%= $result->id %>"
data-ts="<%= ($result->sched_datetime // $result->datetime)->epoch %>"
>
- <span class="dep-time">
+ <a class="dep-time" href="#">
%= $result->datetime->strftime('%H:%M')
% if ($result->delay) {
(<%= sprintf('%+d', $result->delay) %>)
@@ -30,18 +30,24 @@
% elsif (not defined $result->delay and not $result->is_cancelled) {
<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-dest">
+ </a>
+ <span class="dep-line <%= (split(/ /, $result->line))[0] %>">
+ %= $result->line
+ </span>
+ <span class="dep-dest">
+ % if ($result->is_cancelled) {
+ Fahrt nach <%= $result->destination %> entfällt
+ % }
+ % else {
%= $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} // '???' %>
+ <i class="material-icons tiny">people</i>
+ <%= $checkin->{followee_name} %> → <%= $checkin->{arr_name} // '???' %>
</span>
% }
- </span>
+ % }
+ </span>
</li>
% }
</ul>
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>