aboutsummaryrefslogblamecommitdiff
path: root/themes/sourcehut/nav.html
blob: 972fc48c803b6f178fedc9e7215bdb15ee693621 (plain) (tree)
1
2
3
4
5
6
                                                                  
                                        

                                   
                                         
      





















                                                                
      
<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>