summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-26 22:23:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-26 22:23:30 +0200
commit3fd12f84c507d8b968e7ed652f79e43301fbe0e0 (patch)
tree7e2367319e8247e7ae8d229f5dd0ebb37f65d61f /templates
parent7fa4f47bcd76ef4184e1cbf12ca53db73c8e2791 (diff)
train details/route: indicate whether a stop is past or future4.5.0
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 4b91e0d..28369cb 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -194,7 +194,7 @@
Fahrtverlauf:
<ul class="mroute">
% for my $stop (@{$departure->{route_pre_diff}}) {
- <li>
+ <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>">
<a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class="
% if ($stop->{isAdditional}) {
additional-stop
@@ -221,7 +221,7 @@
</li>
% }
% if (stash('station_name')) {
- <li class="<%= $departure->{is_cancelled} ? 'cancelled-stop' : q{} %>"><%= $departure->{sched_departure} // $departure->{sched_arrival} // q{} %>
+ <li class="<%= $departure->{is_cancelled} ? 'cancelled-stop' : q{} %> <%= $departure->{isPast} ? 'past-stop' : 'future-stop' %>"><%= $departure->{sched_departure} // $departure->{sched_arrival} // q{} %>
% if ($departure->{sched_departure}) {
% if ($departure->{departure} ne $departure->{sched_departure}) {
(heute <%= $departure->{departure} %>)
@@ -239,7 +239,7 @@
</li>
% }
% for my $stop (@{$departure->{route_post_diff}}) {
- <li>
+ <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>">
<a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class="
% if ($stop->{isAdditional}) {
additional-stop