summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-26 16:08:33 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-26 16:08:33 +0200
commite1e714f3e7b95640ee7b9ac6f20314857fd4c32a (patch)
tree212607ba13c08d0806312898bbc1ced26eff6678 /templates
parentf12b977e9996439d8fc7d5987ca9581b07966a2d (diff)
support ALL the HAFAS backends
Diffstat (limited to 'templates')
-rw-r--r--templates/main.html.ep5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 13dda0e..589f690 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -155,7 +155,10 @@ other German transit networks.
% my @efa_backends = map { ["$_ (EFA)" => "efa.$_"] } efa_service_list();
% @efa_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
% map { [$_->[0], $_] } @efa_backends;
- %= select_field backend => [['EFA / VRR' => 'vrr'], ['DB (HAFAS)' => 'db'], ['ASEAG (URA)' => 'aseag'], @efa_backends]
+ % my @hafas_backends = map { ["$_ (HAFAS)" => "hafas.$_"] } hafas_service_list();
+ % @hafas_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
+ % map { [$_->[0], $_] } @hafas_backends;
+ %= select_field backend => [['EFA / VRR' => 'vrr'], ['DB (HAFAS)' => 'db'], ['ASEAG (URA)' => 'aseag'], @efa_backends, @hafas_backends]
</div>
</div>
</div>