diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-05-14 14:25:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-05-14 14:25:09 +0200 |
commit | 6db03e0e99807d4dc97c4b4296900742bfbca5af (patch) | |
tree | bf93fa111d481fcdd889dc3bb19f83eab515f480 /templates/clean.html.ep | |
parent | 4f89679f245cf42d6b9719271214290598ccc642 (diff) |
full_route: show less important stations in gray instead of black
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r-- | templates/clean.html.ep | 18 |
1 files changed, 15 insertions, 3 deletions
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} %>) % } <br/> % } % if ($departure->{sched_departure}) { Abfahrt: <%= $departure->{sched_departure} %> % if ($departure->{departure} and $departure->{departure} ne $departure->{sched_departure}) { - (heute: <%= $departure->{departure} %>) + (heute <%= $departure->{departure} %>) % } <br/> % } @@ -88,7 +88,19 @@ % } % if ($departure->{route_post} and @{$departure->{route_post}}) { <div class="mroute"> - Über: <%= join(' – ', @{$departure->{route_post} // q{???}}) %> + Über: +% my $first = 0; +% for my $stop (@{$departure->{route_post} // q{???}}) { +% if ($first++) { + <span class="separator">–</span> +% } +% if ($self->is_important($stop)) { + <span class="important-stop"><%= $stop %></span> +% } +% else { + <span class="generic-stop"><%= $stop %></span> +% } +% } </div> <!-- mroute --> % } % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { |