Software /
code /
prosody
Comparison
plugins/mod_http_errors.lua @ 11662:a8798e04b5c8
mod_http_errors: Allow adding icons on error pages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 Jul 2021 21:54:47 +0200 |
parent | 11404:f7704f987439 |
child | 11663:04fa947784bc |
comparison
equal
deleted
inserted
replaced
11661:735b8f4a6d7e | 11662:a8798e04b5c8 |
---|---|
45 p.warning>span{background-color:inherit;color:yellow} | 45 p.warning>span{background-color:inherit;color:yellow} |
46 } | 46 } |
47 </style> | 47 </style> |
48 </head> | 48 </head> |
49 <body> | 49 <body> |
50 <h1>{title}</h1> | 50 <h1>{icon?{icon_raw!?}} {title}</h1> |
51 <p>{message}</p> | 51 <p>{message}</p> |
52 {warning&<p class="warning"><span>⚠ {warning?} ⚠</span></p>} | 52 {warning&<p class="warning"><span>⚠ {warning?} ⚠</span></p>} |
53 {extra&<p class="extra">{extra?}</p>} | 53 {extra&<p class="extra">{extra?}</p>} |
54 </body> | 54 </body> |
55 </html> | 55 </html> |