summaryrefslogtreecommitdiff
path: root/cgi/templates/clean.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/templates/clean.html.ep')
-rw-r--r--cgi/templates/clean.html.ep20
1 files changed, 20 insertions, 0 deletions
diff --git a/cgi/templates/clean.html.ep b/cgi/templates/clean.html.ep
index 085407b..ae1167c 100644
--- a/cgi/templates/clean.html.ep
+++ b/cgi/templates/clean.html.ep
@@ -10,6 +10,26 @@
<span class="line">
%= $departure->{train}
</span>
+% if ($departure->{moreinfo} and @{$departure->{moreinfo}}) {
+<span class="moreinfo">
+<ul>
+% for my $pair (@{$departure->{moreinfo}}) {
+<li>
+% if ($pair->[0]->isa('DateTime')) {
+%= $pair->[0]->strftime('%H:%M')
+% }
+% else {
+%= $pair->[0]
+% }
+:
+<span class="reason">
+%= $pair->[1]
+</span>
+</li>
+% }
+</ul>
+</span>
+% }
% if ($departure->{info} and length $departure->{info}) {
<span class="info">
%= $departure->{info}