summaryrefslogtreecommitdiff
path: root/templates
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
parentbcbba5f514655cc7ec28a6413f6c2926e8b8d270 (diff)
add preliminary support for a dark layout
Diffstat (limited to 'templates')
-rw-r--r--templates/clean.html.ep7
-rw-r--r--templates/layouts/default.html.ep11
2 files changed, 16 insertions, 2 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index c2cd524..61f6db9 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -1,6 +1,11 @@
% if (@{$departures}) {
-<div class="displayclean">
+% if (param('dark')) {
+<div class="displayclean displaycleandark">
+% }
+% else {
+<div class="displayclean displaycleanlight">
+% }
<ul>
% my $i = 0;
% my $dt_now = DateTime->now;
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)