summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-07-20 14:30:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-07-20 14:30:31 +0200
commit661f3d079c7643acac16ffa372c20d80ee42244b (patch)
treeae03da37d5aa9e15b71276a48114fc474e31379a /templates
parent07d01219fc91e82f5ab87da6ef6926f260cef8a4 (diff)
Add support for MM and TfL URA backends1.4.0
Closes #2
Diffstat (limited to 'templates')
-rw-r--r--templates/main.html.ep9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 4d843d1..1c539fb 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -55,7 +55,7 @@ Serialisierte
Travel::Status::DE::HAFAS</a>-Objekte, siehe die Dokumentation zu
<a href="http://man.finalrewind.org/3/Travel-Status-DE-HAFAS-Result/">::Result</a>
% }
-% elsif (param('backend') and param('backend') eq 'aseag') {
+% elsif (param('backend') and param('backend') =~ m{ ^ura }x) {
Serialisierte
<a href="http://finalrewind.org/projects/Travel-Status-DE-URA/">
Travel::Status::DE::URA</a>-Objekte, siehe die Dokumentation zu
@@ -150,8 +150,11 @@ Alle Angaben ohne Gewähr.
% map { [$_->[0], $_] } @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]
+ % map { [$_->[0], $_] } @hafas_backends;
+ % my @ura_backends = map { ["$_ (URA)" => "ura.$_"] } ura_service_list();
+ % @ura_backends = map { $_->[1] } sort { $a->[0] cmp $b->[0] }
+ % map { [$_->[0], $_] } @ura_backends;
+ %= select_field backend => [['EFA / VRR' => 'vrr'], @efa_backends, @hafas_backends, @ura_backends]
</div>
</div>
<div class="field">