diff --git a/error403.lp b/error403.lp index bdf54a4fce..f27e6de20d 100644 --- a/error403.lp +++ b/error403.lp @@ -11,7 +11,7 @@ mg.include('scripts/lua/header.lp','r') ?> -
+

403

diff --git a/error404.lp b/error404.lp index db032d50b7..63626f7e38 100644 --- a/error404.lp +++ b/error404.lp @@ -11,7 +11,7 @@ mg.include('scripts/lua/header.lp','r') ?> - + +
+ + + +
-
- + diff --git a/scripts/lua/header.lp b/scripts/lua/header.lp index 72e06e69f4..b0c5048eb5 100644 --- a/scripts/lua/header.lp +++ b/scripts/lua/header.lp @@ -62,9 +62,18 @@ hostname = sanitize_hostname(hostname) -- Variable to check if user is already authenticated is_authenticated = mg.request_info.is_authenticated +local bs_theme = theme.dark and 'dark' or 'light' +if theme.name == 'default-auto' then + bs_theme = 'auto' +elseif theme.name == 'default-light' then + bs_theme = 'light' +elseif theme.name == 'default-dark' or theme.name == 'lcars' then + bs_theme = 'dark' +end ?> - + + Pi-hole <?=hostname?> @@ -88,32 +97,42 @@ is_authenticated = mg.request_info.is_authenticated - + + + + - + + - - + - - - - + + + - + + @@ -129,7 +148,7 @@ is_authenticated = mg.request_info.is_authenticated - + diff --git a/scripts/lua/header_authenticated.lp b/scripts/lua/header_authenticated.lp index c544cf7a24..efa8863e69 100644 --- a/scripts/lua/header_authenticated.lp +++ b/scripts/lua/header_authenticated.lp @@ -11,9 +11,12 @@ mg.include('header.lp','r') ?> - - - + + + + + + @@ -24,7 +27,7 @@ mg.include('header.lp','r') - +