Comparison

plugins/mod_http_errors.lua @ 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
parent 11389:29e7ed75ed3f
child 11395:d336b28b4002
comparison
equal deleted inserted replaced
11389:29e7ed75ed3f 11390:226fd5d3a295
27 <title>{title}</title> 27 <title>{title}</title>
28 <style> 28 <style>
29 body{margin-top:14%;text-align:center;background-color:#f8f8f8;font-family:sans-serif} 29 body{margin-top:14%;text-align:center;background-color:#f8f8f8;font-family:sans-serif}
30 h1{font-size:xx-large} 30 h1{font-size:xx-large}
31 p{font-size:x-large} 31 p{font-size:x-large}
32 p.warning{font-size:large;background-color:yellow}
32 p.extra{font-size:large;font-family:courier} 33 p.extra{font-size:large;font-family:courier}
33 @media(prefers-color-scheme:dark){ 34 @media(prefers-color-scheme:dark){
34 body{background-color:#161616;color:#eee} 35 body{background-color:#161616;color:#eee}
36 p.warning{background-color:inherit;color:yellow}
35 } 37 }
36 </style> 38 </style>
37 </head> 39 </head>
38 <body> 40 <body>
39 <h1>{title}</h1> 41 <h1>{title}</h1>
40 <p>{message}</p> 42 <p>{message}</p>
43 {warning&<p class="warning">&#9888; {warning?} &#9888;</p>}
41 {extra&<p class="extra">{extra?}</p>} 44 {extra&<p class="extra">{extra?}</p>}
42 </body> 45 </body>
43 </html> 46 </html>
44 ]]; 47 ]];
45 48