diff options
author | Kim Alvefur <zash@zash.se> | 2021-02-21 06:15:59 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-02-21 06:15:59 +0100 |
commit | ba8610666a7b61259830d534a86c6ef71ef0b609 (patch) | |
tree | 935e7343d0670e6ba40ad37f171ccf1594c222ef /plugins | |
parent | 6d29fa653cb50f7e9624c704a1f2b3154dff6c04 (diff) | |
download | prosody-ba8610666a7b61259830d534a86c6ef71ef0b609.tar.gz prosody-ba8610666a7b61259830d534a86c6ef71ef0b609.zip |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_errors.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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} } </style> </head> <body> <h1>{title}</h1> <p>{message}</p> +{warning&<p class="warning">⚠ {warning?} ⚠</p>} {extra&<p class="extra">{extra?}</p>} </body> </html> |