diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_backend.html.ep | 10 | ||||
-rw-r--r-- | templates/layouts/app.html.ep | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/_backend.html.ep b/templates/_backend.html.ep new file mode 100644 index 0000000..159d325 --- /dev/null +++ b/templates/_backend.html.ep @@ -0,0 +1,10 @@ +<div class="container"> + <p> + Die folgenden Backends werden derzeit unterstützt: + </p> + <p> + % for my $backend (@{$backends}) { + <a class="button" href="<%= url_for(q{/})->query({ hafas => $backend->{hafas} ? $backend->{shortname} : q{} }) %>"><%= $backend->{name} %> (<%= $backend->{type} %>)</a> + % } + </p> +</div> diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 579fb80..7d8bfca 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -141,6 +141,9 @@ Bitte eine Station aus der Liste auswählen</div> <a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https')->query({hafas => param('hafas')}) %>">Stationen in der Umgebung suchen</a> </div> % } + <div class="backendlink"> + <a class="button button-light" href="<%= url_for('_backend')->query({hafas => param('hafas')}) %>">Backend: <%= param('hafas') ? param('hafas') . ' (HAFAS)' : 'DB (IRIS-TTS)' %></a> + </div> <div class="break"></div> <div class="moresettings-header moresettings-header-collapsed button button-light">Weitere Einstellungen</div> <div class="moresettings moresettings-collapsed"> |