2016-09-20 08:32:22 +03:00
|
|
|
@use ::Link;
|
|
|
|
|
2017-02-12 18:24:39 +04:00
|
|
|
@(lpath: &[Link], user: &Option<String>)
|
2016-09-20 08:32:22 +03:00
|
|
|
|
|
|
|
<header>
|
|
|
|
<span><a href="/">Bilder</a>
|
2016-09-23 23:03:04 +03:00
|
|
|
@for p in lpath { - <a href="@p.url">@p.name</a> }
|
2016-09-20 08:32:22 +03:00
|
|
|
</span>
|
|
|
|
<span>· <a href="/tag/">Taggar</a></span>
|
|
|
|
<span>· <a href="/person/">Personer</a></span>
|
|
|
|
<span>· <a href="/place/">Platser</a></span>
|
|
|
|
<span>· <a href="/thisday">Denna dag</a></span>
|
2017-02-12 18:24:39 +04:00
|
|
|
@if let &Some(ref u) = user {<span class="user">@u (<a href="/logout">log out</a>)</span>}
|
2016-09-23 17:40:54 +03:00
|
|
|
else {<span class="user">(<a href="/login">log in</a>)</span>}
|
2016-09-20 08:32:22 +03:00
|
|
|
</header>
|