summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-14 14:25:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-14 14:25:09 +0200
commit6db03e0e99807d4dc97c4b4296900742bfbca5af (patch)
treebf93fa111d481fcdd889dc3bb19f83eab515f480 /index.pl
parent4f89679f245cf42d6b9719271214290598ccc642 (diff)
full_route: show less important stations in gray instead of black
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl9
1 files changed, 9 insertions, 0 deletions
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');