summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-25 15:20:57 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-10-25 15:20:57 +0100
commitbdae52f5a17452e66426aab03bef9867d7a3233d (patch)
tree25cb9c5b5294b9b8b1ddcc83bbafced1fb076ba8 /templates/layouts
parent690b941af328c79cd3e78fb6a43560969d3ee574 (diff)
switch to departure table when clicking on station name in nav
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/app.html.ep13
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index 5432e8b..76ce580 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -69,9 +69,16 @@
<div class="navbar-fixed">
<nav style="color: #ffffff; background-color: #00838f;">
<div class="nav-wrapper container">
- <span class="brand-logo">
- %= stash('title') || 'DBF'
- </span>
+ % if (my $nav_link = stash('nav_link')) {
+ <a class="brand-logo" style="float: left;" href="<%= $nav_link %>">
+ %= stash('title') || 'DBF'
+ </a>
+ % }
+ % else {
+ <span class="brand-logo">
+ %= stash('title') || 'DBF'
+ </span>
+ % }
<ul id="nav-mobile" style="float: right;">
<li class="waves-effect waves-light">
<a onClick="javascript:toggleTheme()"><i class="material-icons" aria-label="Farbschema invertieren">invert_colors</i></a>