diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-06-28 16:57:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-06-28 16:57:30 +0200 |
commit | 84eb1561ee2d78f2e30b1c9011cae7cb010f0959 (patch) | |
tree | 50a48d8f2cd591a8220a618fab8bc3c4dfcc81aa /cgi/templates/clean.html.ep | |
parent | aa04ebaab633b41216db59007821d6ac64a87932 (diff) |
clean template: Show detail RIS / IRIS messages when hovering over a departure
Diffstat (limited to 'cgi/templates/clean.html.ep')
-rw-r--r-- | cgi/templates/clean.html.ep | 20 |
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} |