Loading index.pl +9 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,15 @@ sub get_results_for { return @{$results}; } helper 'is_important' => sub { my ( $self, $stop ) = @_; if ( $stop =~ m{ Hbf | Flughafen }ox ) { return 1; } return; }; sub handle_request { my $self = shift; my $station = $self->stash('station'); Loading public/default.css +12 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,18 @@ div.displayclean li .moreinfo .mroute { margin-bottom: 0.6em; } div.displayclean li .moreinfo .mroute .separator { color: #999999; } div.displayclean li .moreinfo .mroute .important-stop { color: #000000; } div.displayclean li .moreinfo .mroute .generic-stop { color: #555555; } div.displayclean li .dest { color:#000000; /*font-weight:bold;*/ Loading templates/clean.html.ep +15 −3 Original line number Diff line number Diff line Loading @@ -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/> % } Loading @@ -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}}) { Loading Loading
index.pl +9 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,15 @@ sub get_results_for { return @{$results}; } helper 'is_important' => sub { my ( $self, $stop ) = @_; if ( $stop =~ m{ Hbf | Flughafen }ox ) { return 1; } return; }; sub handle_request { my $self = shift; my $station = $self->stash('station'); Loading
public/default.css +12 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,18 @@ div.displayclean li .moreinfo .mroute { margin-bottom: 0.6em; } div.displayclean li .moreinfo .mroute .separator { color: #999999; } div.displayclean li .moreinfo .mroute .important-stop { color: #000000; } div.displayclean li .moreinfo .mroute .generic-stop { color: #555555; } div.displayclean li .dest { color:#000000; /*font-weight:bold;*/ Loading
templates/clean.html.ep +15 −3 Original line number Diff line number Diff line Loading @@ -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/> % } Loading @@ -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}}) { Loading