aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut/nav.html
blob: 972fc48c803b6f178fedc9e7215bdb15ee693621 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<nav class="container-fluid navbar navbar-light navbar-expand-sm">
  <!-- TODO: show active plugin name -->
  <a class="navbar-brand" href="/">
    koushin
    <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>