2018-11-01 02:08:29 +04:00
|
|
|
@use super::page_base;
|
2018-09-01 16:41:40 +04:00
|
|
|
@use crate::server::Context;
|
|
|
|
@use warp::http::StatusCode;
|
2017-06-27 02:13:48 +04:00
|
|
|
|
2018-09-01 16:41:40 +04:00
|
|
|
@(context: &Context, code: StatusCode, message: &str)
|
2017-06-27 02:13:48 +04:00
|
|
|
|
2018-09-01 16:41:40 +04:00
|
|
|
@:page_base(context, code.canonical_reason().unwrap_or("error"), &[], {}, {
|
|
|
|
<p>@message (@code.as_u16())</p>
|
|
|
|
@if !context.is_authorized() {
|
2017-06-27 02:13:48 +04:00
|
|
|
<p>At least nothing publicly visible, you might try
|
2018-09-01 16:41:40 +04:00
|
|
|
<a href="/login?next=@context.path_without_query()">logging in</a>.</p>
|
2017-06-27 02:13:48 +04:00
|
|
|
}
|
|
|
|
})
|