album/templates/not_found.rs.html
Rasmus Kaj 5c03a28f59 Use warp instead of nickel.
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.
2019-04-22 16:08:19 +02:00

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>
}
})