summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-22 16:23:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-22 16:23:45 +0200
commitae9051b807ac8116583f4a1b2e3b3cea7218a74f (patch)
treeeb5f1ae4b86042e48bd251f6310b07a9f5fa19c3 /templates
parent9b6efdb7df4a93b9d40b567053830c9194c0d473 (diff)
color additional/cancelled stops green/red in IRIS+clean detail view
Diffstat (limited to 'templates')
-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 -->