summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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