album/templates/head.rs.html
2016-09-23 22:03:04 +02:00

16 lines
499 B
HTML

@use ::Link;
@(lpath: Vec<Link>, user: Option<String>)
<header>
<span><a href="/">Bilder</a>
@for p in lpath { - <a href="@p.url">@p.name</a> }
</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>
@if let Some(u) = user {<span class="user">@u (<a href="/logout">log out</a>)</span>}
else {<span class="user">(<a href="/login">log in</a>)</span>}
</header>