summaryrefslogtreecommitdiff
path: root/templates/clean.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r--templates/clean.html.ep16
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 0bbdf54..61ee6d6 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -90,19 +90,25 @@
% }
</div> <!-- timeinfo -->
% }
-% if ($departure->{route_post} and @{$departure->{route_post}}) {
+% if ($departure->{route_post_diff} and @{$departure->{route_post_diff}}) {
<div class="mroute">
Über:
% my $first = 0;
-% for my $stop (@{$departure->{route_post} // q{???}}) {
+% for my $stop (@{$departure->{route_post_diff} // q{???}}) {
% if ($first++) {
<span class="separator">–</span>
% }
-% if ($self->is_important($stop)) {
- <span class="important-stop"><%= $stop %></span>
+% if ($stop->{isAdditional}) {
+ <span class="additional-stop"><%= $stop->{name} %></span>
+% }
+% elsif ($stop->{isCancelled}) {
+ <span class="cancelled-stop"><%= $stop->{name} %></span>
+% }
+% elsif ($self->is_important($stop->{name})) {
+ <span class="important-stop"><%= $stop->{name} %></span>
% }
% else {
- <span class="generic-stop"><%= $stop %></span>
+ <span class="generic-stop"><%= $stop->{name} %></span>
% }
% }
</div> <!-- mroute -->