summaryrefslogtreecommitdiff
path: root/pkg/webui/html/base.html
blob: c0138acabdbcf2dd4bb873268a7a912be6e76ae6 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{{ define "nav" }}
<header>
  <nav>
    <a href="/">
      <h6>TFSTATED</h6>
    </a>
  </nav>
</header>
{{ if eq .Page.Section "login" }}
<a href="/login" class="active">
  <i>login</i>
  <span>Login</span>
</a>
{{ else }}
<a href="/states"{{ if eq .Page.Section "states" }} class="fill"{{ end}}>
  <i>home_storage</i>
  <span>States</span>
</a>
<a href="/logout">
  <i>logout</i>
  <span>Logout</span>
</a>
{{ end }}
{{ end }}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="/static/favicon.svg">
    <link href="/static/main.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/beercss@3.8.0/dist/cdn/beer.min.css" rel="stylesheet">
    <title>TFSTATED - {{ .Page.Title }}</title>
  </head>
  <body class="dark">
    <nav class="left drawer l">{{ template "nav" . }}</nav>
    <nav class="left m">{{ template "nav" . }}</nav>
    <nav class="bottom s">{{ template "nav" . }}</nav>
    <header>
      <nav>
        {{ if ne .Page.Precedent "" }}
        <a href="{{ .Page.Precedent }}" class="button circle chip">
            <i>arrow_back</i>
          </a>
        {{ end }}
        <h5 class="max center-align">{{ .Page.Title }}</h5>
      </nav>
    </header>
    {{ template "main" . }}
    <footer>
    </footer>
    <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.8.0/dist/cdn/beer.min.js"></script>
  </body>
</html>