diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-18 19:17:10 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-18 19:17:10 +0200 |
commit | 4dda0fd251e6c82c73cf7ae280caf1ae94d3012e (patch) | |
tree | f0301daaac4af07af8e5507d08cce8f1f05c0397 /templates/select_backend.html.ep | |
parent | d8ffb5163a0f4bf543e5b026879cfff8ada0ab52 (diff) |
Add preliminary EFA support
Diffstat (limited to 'templates/select_backend.html.ep')
-rw-r--r-- | templates/select_backend.html.ep | 11 |
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> % } |