2018-09-01 16:41:40 +04:00
|
|
|
@use crate::server::{Context, Link};
|
2016-09-20 08:32:22 +03:00
|
|
|
|
2018-09-01 16:41:40 +04:00
|
|
|
@(context: &Context, lpath: &[Link])
|
2016-09-20 08:32:22 +03:00
|
|
|
|
|
|
|
<header>
|
2017-11-17 03:26:17 +04:00
|
|
|
<span><a href="/" accesskey="h" title="Images from all years">Images</a>
|
2017-11-25 05:35:15 +04:00
|
|
|
@for p in lpath { - @p}
|
2016-09-20 08:32:22 +03:00
|
|
|
</span>
|
2017-07-30 21:47:54 +04:00
|
|
|
<span>· <a href="/tag/">Tags</a></span>
|
|
|
|
<span>· <a href="/person/">People</a></span>
|
|
|
|
<span>· <a href="/place/">Places</a></span>
|
|
|
|
<span>· <a href="/thisday">On this day</a></span>
|
2017-11-17 03:26:17 +04:00
|
|
|
<span>· <a href="/random" accesskey="r">Random pic</a></span>
|
2018-09-01 16:41:40 +04:00
|
|
|
@if let Some(ref u) = context.authorized_user() {<span class="user">@u (<a href="/logout">log out</a>)</span>}
|
|
|
|
else {<span class="user">(<a href="/login?next=@context.path_without_query()">log in</a>)</span>}
|
2019-07-20 00:46:26 +04:00
|
|
|
<form class="search" action="/search/" method="get">
|
|
|
|
<label for="s_q" accesskey="s" title="Search">🔍</label>
|
|
|
|
<div class="refs"><input id="s_q" name="q" type="search"/></div>
|
|
|
|
</form>
|
2016-09-20 08:32:22 +03:00
|
|
|
</header>
|