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 /index.pl | |
parent | 4f89679f245cf42d6b9719271214290598ccc642 (diff) |
full_route: show less important stations in gray instead of black
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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'); |