all repos — honk @ b602d33e4b4c03dc9a1a172ec4a850152d4bc11b

my fork of honk

views/header.html (view raw)

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