16 lines
500 B
HTML
16 lines
500 B
HTML
@use ::Link;
|
|
|
|
@(lpath: &[Link], user: &Option<String>)
|
|
|
|
<header>
|
|
<span><a href="/">Images</a>
|
|
@for p in lpath { - <a href="@p.url">@p.name</a> }
|
|
</span>
|
|
<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>
|
|
@if let &Some(ref 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>
|