aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/nav.html
blob: 3c261669b75e4eb43c8320c489dcaa44226b411b (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
<header>
  <nav>
    {{$page := (index .GlobalData.Path 0)}}
    <a href="/"
      {{ if or (eq $page "mailbox") (eq $page "message") }}
      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>