summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-28 14:47:49 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-28 14:47:49 +0100
commit5109d2a4ca68863a22adfac92627a38a79e49993 (patch)
tree1e77ebab902b0f46175e74c03732841cd698f17a /templates/layouts
parentbcbba5f514655cc7ec28a6413f6c2926e8b8d270 (diff)
add preliminary support for a dark layout
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/default.html.ep11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 4a0e616..7278686 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -27,7 +27,8 @@
%= javascript '/static/geolocation.js'
% }
</head>
-<body style="<%= (stash('hide_opts') ? 'margin: 0; padding: 0;' : q{}) %>">
+<body style="<%= (stash('hide_opts') ? 'margin: 0; padding: 0;' : q{}) %>
+<%= (param('dark') ? 'background-color: #000000; color: #ffffff;' : q{}) %>">
<div class="container">
% if (my $error = stash 'error') {
@@ -114,6 +115,14 @@ Bitte eine Station aus der Liste auswählen</div>
</div>
<div class="field">
<div class="desc">
+ %= check_box 'dark' => 1, id => 'id_dark'
+ <label for="id_dark">
+ Dunkles Layout (experimentell)
+ </label>
+ </div>
+ </div>
+ <div class="field">
+ <div class="desc">
%= check_box 'hide_opts' => 1, id => 'id_hide_opts'
<label for="id_hide_opts">
Formular verstecken (für Infoscreens)