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
|
|
|
|
2017-08-03 21:59:21 +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
|
|
|
}
|
|
|
|
})
|