all repos — honk @ 4fc56940b5a18711d96b6ab1a6e0e7e0b0517bc4

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