summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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)