5c03a28f59
Use the modern async warp web framework instead of nickel (which is starting to feel a bit stale). Url routing and context passing is changed a lot.
14 lines
420 B
HTML
14 lines
420 B
HTML
@use super::page_base;
|
|
@use crate::server::Context;
|
|
@use warp::http::StatusCode;
|
|
|
|
@(context: &Context, code: StatusCode, message: &str)
|
|
|
|
@:page_base(context, code.canonical_reason().unwrap_or("error"), &[], {}, {
|
|
<p>@message (@code.as_u16())</p>
|
|
@if !context.is_authorized() {
|
|
<p>At least nothing publicly visible, you might try
|
|
<a href="/login?next=@context.path_without_query()">logging in</a>.</p>
|
|
}
|
|
})
|