aboutsummaryrefslogblamecommitdiff
path: root/themes/sourcehut/nav.html
blob: 687dfd8d93117f54d35fbcc5fe6a97aaffd2bba7 (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="/">
    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>