all repos — honk @ 757bb4cea44f69d71dbd6b6c6e857bd00569e211

my fork of honk

views/header.html (view raw)

 1<!doctype html>
 2<html>
 3  <head>
 4  <title>honk</title>
 5  <link href="/style.css{{ .StyleParam }}" rel="stylesheet">
 6    {{ if .LocalStyleParam }}
 7  <link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
 8    {{ end }}
 9  <style>
10  {{ .UserStyle }}
11  </style>
12  <link rel="manifest" href="/manifest.webmanifest">
13  <link href="/icon.png" rel="icon">
14  <meta name="theme-color" media="(prefers-color-scheme: light) "content="#F72585">
15  <meta name="theme-color" media="(prefers-color-scheme: dark) "content="#509c93">
16  <meta name="viewport" content="width=device-width">
17  <script>
18  if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw.js') }
19  </script>
20  </head>
21  <body>
22    <header>
23      {{ if .UserInfo }}
24      <nav>
25        <ul class="easylinks">
26      <li><a id="homelink" href="/">home</a>
27      <li><a id="atmelink" href="/atme">@me<span style="padding-left:3px;margin:0;" id=mecount>{{ if .UserInfo.Options.MeCount }}({{ .UserInfo.Options.MeCount }}){{ end }}</span></a>
28      <li><a href="/account">account</a>
29      <li><a href="/honkers">honkers</a>
30      <li><a href="/{{ .UserSep }}/{{ .UserInfo.Name }}">{{ .UserInfo.Name }}</a>
31    </ul>
32      </nav>
33
34      <details id="topmenu">
35        <summary>menu</summary>
36        <ul>
37          <li><a id="firstlink" href="/first">first</a>
38          <li style="list-style-type:none; margin-left:-1em">
39            <details>
40              <summary>combos</summary>
41              <ul>
42                {{ range .Combos }}
43                <li><a class="combolink" href="/c/{{ . }}">{{ . }}</a>
44                  {{ end }}
45              </ul>
46            </details>
47          <li><a href="/chatter">chatter<span id=chatcount>{{ if .UserInfo.Options.ChatCount }}({{ .UserInfo.Options.ChatCount }}){{ end }}</span></a>
48          <li><a href="/o">tags</a>
49          <li><a href="/events">events</a>
50          <li><a id="longagolink" href="/longago">long ago</a>
51          <li><a id="savedlink" href="/saved">saved</a>
52          <li><a href="/hfcs">filters</a>
53          <li style="list-style-type:none; margin-left:-1em">
54            <details>
55              <summary>more stuff</summary>
56              <ul>
57                <li><a href="/about">about</a>
58                <li><a href="/front">front</a>
59                <li><a href="/funzone">funzone</a>
60                <li><a href="/xzone">xzone</a>
61              </ul>
62            </details>
63          <li><a href="/help/honk.1.html">help</a>
64        </ul>
65      </details>
66      {{ else }}
67      <div id="topmenu">
68        <span><a id="homelink" href="/">home</a></span>
69        <span><a href="/o">tags</a></span>
70        <span><a href="/events">events</a></span>
71        <span><a href="/about">about</a></span>
72        {{ if .ShowRSS }}
73        <span><a href="/rss">rss</a></span>
74        {{ end }}
75        <span><a href="/login">login</a></span>
76      </div>
77      {{ end }}
78    </header>
79