diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-01-24 23:47:05 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-01-24 23:47:05 +0100 |
commit | 92520ae30fbb4d87235665e8a7e198387d4954aa (patch) | |
tree | b03bf47c3514233a306e549d9726799b9a614a10 /views/header.html | |
download | honk_custom-92520ae30fbb4d87235665e8a7e198387d4954aa.tar.gz honk_custom-92520ae30fbb4d87235665e8a7e198387d4954aa.zip |
custom honk.html and header.html : easier to honk
- header.html: very dirty html to allow
easier reach of frequent actions (new
post, fetching a thread, settings, @you,
your posts... to cite a few)
- honk.html: no more 'Actions' dropdown
menu to simply reply back to a tweet
Diffstat (limited to 'views/header.html')
-rw-r--r-- | views/header.html | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/views/header.html b/views/header.html new file mode 100644 index 0000000..a57dcde --- /dev/null +++ b/views/header.html @@ -0,0 +1,80 @@ +<!doctype html> +<html> +<head> + <link rel="shortcut icon" href="/favicon.ico"/> +<title>honk</title> +<link href="/style.css{{ .StyleParam }}" rel="stylesheet"> +{{ if .LocalStyleParam }} +<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet"> +{{ end }} +<style> +{{ .UserStyle }} +</style> +<link href="/icon.png" rel="icon"> +<meta name="theme-color" content="#305"> +<meta name="viewport" content="width=device-width"> +</head> +<body> +<header> +{{ if .UserInfo }} +<details id="topmenu"> + <summary>menu | + <a href="/newhonk">new honk</a> | + <a href="/front">fanfare</a> | + <a href="/">home</a> | + <a href="/xzone">fetch</a> | + <a href="/atme">@me</a> | + <a href="/u/{{ .UserInfo.Username}}">my honks</a> | + <a href="/account">settings</a> + <span> {{ .UserInfo.Username }}</span></summary> +<ul> +<li><a id="homelink" href="/">home</a> +<li><a id="atmelink" href="/atme">@me</a> +<li><a id="firstlink" href="/first">first</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>combos</summary> +<ul> +{{ range .Combos }} +<li><a class="combolink" href="/c/{{ . }}">{{ . }}</a> +{{ end }} +</ul> +</details> +<li><a href="/chatter">chatter</a> +<li><a href="/o">tags</a> +<li><a href="/events">events</a> +<li><a id="longagolink" href="/longago">long ago</a> +<li><a id="savedlink" href="/saved">saved</a> +<li><a href="/honkers">honkers</a> +<li><a href="/hfcs">filters</a> +<li><a href="/account">account</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>more stuff</summary> +<ul> +<li><a href="/{{ .UserSep }}/{{ .UserInfo.Username }}">my honks</a> +<li><a href="/about">about</a> +<li><a href="/front">front</a> +<li><a href="/funzone">funzone</a> +<li><a href="/xzone">xzone</a> +</ul> +</details> +<li><a href="/help/honk.1.html">help</a> +<li> +<form action="/q" method="GET"> +<input type="text" name="q" autocomplete=off size=10 placeholder="search"> +</form> +</ul> +</details> +<p id="topspacer"></p> +{{ else }} +<span><a id="homelink" href="/">home</a></span> +<span><a href="/o">tags</a></span> +<span><a href="/events">events</a></span> +<span><a href="/about">about</a></span> +{{ if .ShowRSS }} +<span><a href="/rss">rss</a></span> +{{ end }} +<span><a href="/login">login</a></span> +{{ end }} +</header> |