From 6db03e0e99807d4dc97c4b4296900742bfbca5af Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 14 May 2015 14:25:09 +0200 Subject: full_route: show less important stations in gray instead of black --- templates/clean.html.ep | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'templates/clean.html.ep') diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 053c8a8..ecd4366 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -73,14 +73,14 @@ % if ($departure->{sched_arrival}) { Ankunft: <%= $departure->{sched_arrival} %> % if ($departure->{arrival} and $departure->{arrival} ne $departure->{sched_arrival}) { - (heute: <%= $departure->{arrival} %>) + (heute <%= $departure->{arrival} %>) % }
% } % if ($departure->{sched_departure}) { Abfahrt: <%= $departure->{sched_departure} %> % if ($departure->{departure} and $departure->{departure} ne $departure->{sched_departure}) { - (heute: <%= $departure->{departure} %>) + (heute <%= $departure->{departure} %>) % }
% } @@ -88,7 +88,19 @@ % } % if ($departure->{route_post} and @{$departure->{route_post}}) {
- Über: <%= join(' – ', @{$departure->{route_post} // q{???}}) %> + Über: +% my $first = 0; +% for my $stop (@{$departure->{route_post} // q{???}}) { +% if ($first++) { + +% } +% if ($self->is_important($stop)) { + <%= $stop %> +% } +% else { + <%= $stop %> +% } +% }
% } % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { -- cgit v1.2.3