diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-10 16:30:27 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-10 16:30:27 +0200 |
commit | 62ed936de5b54f72e4a94b553ecddaee34be1268 (patch) | |
tree | a56933070416d36e9ab4fc9abb51e42478e78d0e /templates/layouts/app.html.ep | |
parent | 27875acbc95f3b0365a4483710da422a0de9963a (diff) |
app: link to main page when options are hidden
Diffstat (limited to 'templates/layouts/app.html.ep')
-rw-r--r-- | templates/layouts/app.html.ep | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 6189c9c..9d32bf7 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -38,7 +38,12 @@ %= stash('title') || 'DBF' </span> <ul id="nav-mobile" style="float: right;"> - <li><a href="#stationinput"><i class="material-icons">edit</i></a></li> + % if (stash('hide_opts')) { + <li><a href="/"><i class="material-icons">edit</i></a></li> + % } + % else { + <li><a href="#stationinput"><i class="material-icons">edit</i></a></li> + % } <li><a href="/_auto"><i class="material-icons">my_location</i></a></li> </ul> </div> |