# HG changeset patch # User Kim Alvefur # Date 1613884559 -3600 # Node ID 226fd5d3a2959fb601ce6948c6e45df18bbd93ec # Parent 29e7ed75ed3f5252470f6bd2703ee0ead27c113d 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. diff -r 29e7ed75ed3f -r 226fd5d3a295 plugins/mod_http_errors.lua --- a/plugins/mod_http_errors.lua Sun Feb 21 06:13:19 2021 +0100 +++ b/plugins/mod_http_errors.lua Sun Feb 21 06:15:59 2021 +0100 @@ -29,15 +29,18 @@ 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?}

}