summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-02-04 18:22:18 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-02-04 18:22:18 +0100
commit91a40424443bb5522e9350305ed452c9fae47a1b (patch)
treecc0b56dbd1edf2015c7182ff8001ba432792c535 /templates/layouts
parentac1a4336430431b84c26ac629545e78c84158685 (diff)
departure board: add regional / local transit switcher; move autostop to bottom
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/app.html.ep11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index 0992a43..e406570 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -83,6 +83,11 @@
</span>
% }
<ul id="nav-mobile" style="float: right;">
+ % if (stash('api_link')) {
+ <li class="waves-effect waves-light">
+ <a href="<%= $api_link %>"><span class="visually-hidden"><%= $api_text %></span><i class="material-icons" aria-hidden="true"><%= $api_icon %></i></a>
+ </li>
+ % }
<li class="waves-effect waves-light">
<a onClick="javascript:toggleTheme()"><span class="visually-hidden">Farbschema invertieren</span><i class="material-icons" aria-hidden="true">invert_colors</i></a>
</li>
@@ -92,7 +97,6 @@
% else {
<li><a href="#stationinput"><span class="visually-hidden">Menü</span><i class="material-icons" aria-hidden="true">edit</i></a></li>
% }
- <li><a href="/_autostop"><span class="visually-hidden">Stationen in der Umgebung suchen</span><i class="material-icons" aria-hidden="true">my_location</i></a></li>
</ul>
</div>
</nav>
@@ -140,6 +144,11 @@ Bitte eine Station aus der Liste auswählen</div>
<div class="field">
%= submit_button 'Abfahrtsmonitor'
</div>
+ % if (stash('input')) {
+ <div class="geolink">
+ <a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Stationen in der Umgebung suchen</a>
+ </div>
+ % }
<div class="break"></div>
<div class="moresettings-header moresettings-header-collapsed button button-light">Weitere Einstellungen</div>
<div class="moresettings moresettings-collapsed">