summaryrefslogtreecommitdiff
path: root/templates/select_backend.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-18 19:17:10 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-18 19:17:10 +0200
commit4dda0fd251e6c82c73cf7ae280caf1ae94d3012e (patch)
treef0301daaac4af07af8e5507d08cce8f1f05c0397 /templates/select_backend.html.ep
parentd8ffb5163a0f4bf543e5b026879cfff8ada0ab52 (diff)
Add preliminary EFA support
Diffstat (limited to 'templates/select_backend.html.ep')
-rw-r--r--templates/select_backend.html.ep11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/select_backend.html.ep b/templates/select_backend.html.ep
index 836e5c7..2603800 100644
--- a/templates/select_backend.html.ep
+++ b/templates/select_backend.html.ep
@@ -14,17 +14,22 @@
<%= $prev_type %>:<br/>
% }
% my $class = 'button';
- % if (param('hafas')) {
+ % if (param('efa')) {
+ % if ($backend->{efa} and $backend->{shortname} eq param('efa')) {
+ % $class .= ' button-active';
+ % }
+ % }
+ % elsif (param('hafas')) {
% if ($backend->{hafas} and $backend->{shortname} eq param('hafas')) {
% $class .= ' button-active';
% }
% }
% else {
- % if (not $backend->{hafas}) {
+ % if (not ($backend->{efa} or $backend->{hafas})) {
% $class .= ' button-active';
% }
% }
- <a class="<%= $class %>" href="<%= url_for(q{/})->query({ hafas => $backend->{hafas} ? $backend->{shortname} : q{} }) %>"><%= $backend->{shortname} // 'IRIS-TTS' %> – <%= $backend->{name} %></a>
+ <a class="<%= $class %>" href="<%= url_for(q{/})->query({ efa => $backend->{efa} ? $backend->{shortname} : q{}, hafas => $backend->{hafas} ? $backend->{shortname} : q{} }) %>"><%= $backend->{shortname} // 'IRIS-TTS' %> – <%= $backend->{name} %></a>
% if ($backend->{has_area}) {
<a href="/coverage/<%= $backend->{type} %>/<%= $backend->{shortname} %>"><%= join(q{, }, @{$backend->{regions}}) || '[Karte]' %></a>
% }