Software /
code /
prosody
Changeset
11390:226fd5d3a295
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 21 Feb 2021 06:15:59 +0100 |
parents | 11389:29e7ed75ed3f |
children | 11391:8eff5c744395 |
files | plugins/mod_http_errors.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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} } </style> </head> <body> <h1>{title}</h1> <p>{message}</p> +{warning&<p class="warning">⚠ {warning?} ⚠</p>} {extra&<p class="extra">{extra?}</p>} </body> </html>