diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-28 14:47:49 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-28 14:47:49 +0100 |
commit | 5109d2a4ca68863a22adfac92627a38a79e49993 (patch) | |
tree | 1e77ebab902b0f46175e74c03732841cd698f17a /templates/layouts | |
parent | bcbba5f514655cc7ec28a6413f6c2926e8b8d270 (diff) |
add preliminary support for a dark layout
Diffstat (limited to 'templates/layouts')
-rw-r--r-- | templates/layouts/default.html.ep | 11 |
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) |