aboutsummaryrefslogblamecommitdiff
path: root/themes/alps/nav.html
blob: 1678434788d33eb9ce9e40b969d7c8b9b17591bf (plain) (tree)
1
2
3
4
5

        

                                           
                                                                                














                                  






                                             
<header>
  <nav>
    {{$page := (index .GlobalData.Path 0)}}
    <a href="/"
      {{ if or (eq $page "mailbox") (eq $page "message") (eq $page "compose") }}
      class="active"
      {{ end }}
    >Email</a>
    <a
      href="/calendar"
      {{ if eq $page "calendar" }}
      class="active"
      {{ end }}
    >Calendar</a>
    <a
      href="/contacts"
      {{ if eq $page "contacts" }}
      class="active"
      {{ end }}
    >Contacts</a>
    <div>
      <span>{{ .GlobalData.Username }}</span>
      <a href="/settings">Settings</a>
      <a href="/logout">Sign Out</a>
    </div>
  </nav>
</header>