album/templates/not_found.rs.html
2023-01-28 12:51:34 +01:00

14 lines
430 B
HTML

@use super::page_base_html;
@use crate::server::Context;
@use warp::http::StatusCode;
@(context: &Context, code: StatusCode, message: &str)
@:page_base_html(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>
}
})