From ba8610666a7b61259830d534a86c6ef71ef0b609 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 21 Feb 2021 06:15:59 +0100 Subject: mod_http_errors: Add a highlighted warning to template It looks sooooo good! Meant to be used by e.g. mod_bosh to warn in case the request is considered insecure. --- plugins/mod_http_errors.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_http_errors.lua b/plugins/mod_http_errors.lua index 19433aee..3f77f37c 100644 --- a/plugins/mod_http_errors.lua +++ b/plugins/mod_http_errors.lua @@ -29,15 +29,18 @@ local html = [[ body{margin-top:14%;text-align:center;background-color:#f8f8f8;font-family:sans-serif} h1{font-size:xx-large} p{font-size:x-large} +p.warning{font-size:large;background-color:yellow} p.extra{font-size:large;font-family:courier} @media(prefers-color-scheme:dark){ body{background-color:#161616;color:#eee} +p.warning{background-color:inherit;color:yellow} }

{title}

{message}

+{warning&

⚠ {warning?} ⚠

} {extra&

{extra?}

} -- cgit v1.2.3