From 5109d2a4ca68863a22adfac92627a38a79e49993 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 Dec 2017 14:47:49 +0100 Subject: add preliminary support for a dark layout --- templates/clean.html.ep | 7 ++++++- templates/layouts/default.html.ep | 11 ++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'templates') 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}) { -
+% if (param('dark')) { +
+% } +% else { +
+% }
    % 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' % } - +
    % if (my $error = stash 'error') { @@ -112,6 +113,14 @@ Bitte eine Station aus der Liste auswählen
+
+
+ %= check_box 'dark' => 1, id => 'id_dark' + +
+
%= check_box 'hide_opts' => 1, id => 'id_hide_opts' -- cgit v1.2.3