Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_http_errors.lua Thu Jul 08 18:21:59 2021 +0200 +++ b/plugins/mod_http_errors.lua Fri Jul 09 21:54:47 2021 +0200 @@ -47,7 +47,7 @@ </style> </head> <body> -<h1>{title}</h1> +<h1>{icon?{icon_raw!?}} {title}</h1> <p>{message}</p> {warning&<p class="warning"><span>⚠ {warning?} ⚠</span></p>} {extra&<p class="extra">{extra?}</p>}