album/templates/not_found.rs.html

14 lines
420 B
HTML
Raw Normal View History

2018-11-01 02:08:29 +04:00
@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>
}
})