alps/themes/sourcehut/nav.html
2020-05-13 14:07:44 +02:00

29 lines
867 B
HTML

<nav class="container-fluid navbar navbar-light navbar-expand-sm">
<!-- TODO: show active plugin name -->
<a class="navbar-brand" href="/">
alps
<span class="text-danger">mail</span>
</a>
{{if .LoggedIn}}
<ul class="navbar-nav mr-auto d-none d-sm-flex">
<li class="nav-item active">
<a href="/" class="nav-link">mail</a>
</li>
<!-- TODO: only show these links if plugins are loaded -->
<li class="nav-item">
<a href="/contacts" class="nav-link">contacts</a>
</li>
<li class="nav-item">
<a href="/calendar" class="nav-link">calendar</a>
</li>
</ul>
<div class="login">
<span class="navbar-text">
Logged in as {{.Username}} —
<a href="/settings">Settings</a>
<a href="/logout">Log out</a>
</span>
</div>
{{end}}
</nav>