honk/views/header.html

59 lines
1.4 KiB
HTML
Raw Normal View History

2019-04-09 13:59:33 +02:00
<!doctype html>
<html>
<head>
<title>honk</title>
<link href="/style.css{{ .StyleParam }}" rel="stylesheet">
{{ if .LocalStyleParam }}
<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
{{ end }}
2019-06-28 04:36:55 +02:00
<style>
{{ .UserStyle }}
</style>
2019-04-09 13:59:33 +02:00
<link href="/icon.png" rel="icon">
<meta name="theme-color" content="#305">
2019-04-21 03:55:23 +02:00
<meta name="viewport" content="width=device-width">
2019-04-09 13:59:33 +02:00
</head>
<body>
2019-04-29 01:16:24 +02:00
<header>
2019-04-09 13:59:33 +02:00
{{ if .UserInfo }}
<details id="topmenu">
<summary>menu</summary>
<p>
<ul>
<li><a href="/{{ .UserSep }}/{{ .UserInfo.Username }}">{{ .UserInfo.Username }}</a>
<li><a href="/honkers">honkers</a>
2019-09-24 19:56:44 +02:00
<li style="list-style-type:none; margin-left:-1em">
<details>
<summary>combos</summary>
2019-09-24 19:52:06 +02:00
<ul>
{{ range .Combos }}
<li><a class="combolink" href="/c/{{ . }}">{{ . }}</a>
2019-09-24 19:52:06 +02:00
{{ end }}
</ul>
2019-09-24 19:56:44 +02:00
</details>
<li><a href="/o">tags</a>
<li><a href="/about">about</a>
<li><a href="/front">front</a>
<li><a href="/xzone">xzone</a>
<li><a href="/zonkzone">zonkzone</a>
<li><a href="/funzone">funzone</a>
<li><a href="/account">account</a>
<li>
<form action="/q" method="GET">
<input type="text" name="q" autocomplete=off size=10 placeholder="search">
</form>
</ul>
</details>
<p>
<span><a id="homelink" href="/">home</a></span>
<span><a id="atmelink" href="/atme">@me</a></span>
2019-04-09 13:59:33 +02:00
{{ else }}
<span><a id="homelink" href="/">home</a></span>
2019-06-08 21:31:00 +02:00
<span><a href="/about">about</a></span>
2019-05-26 22:05:59 +02:00
{{ if .ShowRSS }}
<span><a href="/rss">rss</a></span>
{{ end }}
2019-04-09 13:59:33 +02:00
<span><a href="/login">login</a></span>
{{ end }}
2019-04-29 01:16:24 +02:00
</header>