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 --- index.pl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'index.pl') diff --git a/index.pl b/index.pl index 76ab37e..b60ee73 100644 --- a/index.pl +++ b/index.pl @@ -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'); -- cgit v1.2.3