2017-08-03 14:50:01 +04:00
|
|
|
@use nickel::Request;
|
2017-06-27 02:13:48 +04:00
|
|
|
@use templates::page_base;
|
2017-08-03 14:50:01 +04:00
|
|
|
@use nickel_jwt_session::SessionRequestExtensions;
|
2017-06-27 02:13:48 +04:00
|
|
|
|
2017-08-03 14:50:01 +04:00
|
|
|
@(req: &Request)
|
2017-06-27 02:13:48 +04:00
|
|
|
|
2018-11-03 20:17:09 +04:00
|
|
|
@:page_base(req, "Not found", &[], {}, {
|
2017-06-27 02:13:48 +04:00
|
|
|
<p>No page or photo match that url.</p>
|
2017-08-03 14:50:01 +04:00
|
|
|
@if req.authorized_user().is_none() {
|
2017-06-27 02:13:48 +04:00
|
|
|
<p>At least nothing publicly visible, you might try
|
2017-08-03 14:50:01 +04:00
|
|
|
<a href="/login@if let Some(p) = req.path_without_query() {?next=@p}">logging in</a>.</p>
|
2017-06-27 02:13:48 +04:00
|
|
|
}
|
|
|
|
})
|