summaryrefslogtreecommitdiff
path: root/views/header.html
diff options
context:
space:
mode:
authorNicolas Sterchele <nicolas@sterchelen.net>2022-08-31 23:08:52 +0200
committerNicolas Sterchele <nicolas@sterchelen.net>2022-08-31 23:19:58 +0200
commitb9281c89737419216b710a87c31686d21adf86bc (patch)
treebc2b2c73b35ead61bee37b75aec1eee2d78c6ef4 /views/header.html
initial commit
Thanks to Ted Unangst for its work. Originally available here https://humungus.tedunangst.com/r/inks
Diffstat (limited to 'views/header.html')
-rwxr-xr-xviews/header.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/views/header.html b/views/header.html
new file mode 100755
index 0000000..7cf03f3
--- /dev/null
+++ b/views/header.html
@@ -0,0 +1,23 @@
+<head>
+<title>inks</title>
+<link href="/style.css{{ .StyleParam }}" rel="stylesheet">
+<link href="/rss" rel="alternate" type="application/rss+xml" title="inks rss">
+<link href="/icon.png" rel="icon">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+</head>
+<body>
+<header>
+<span><a href="/" title="follow via activitypub">@inks@{{ .ServerName }}</a></span>
+<span><a href="/tags">tags</a></span>
+<span><a href="/sources">sources</a></span>
+<span><a href="/random">random</a></span>
+{{ if .UserInfo }}
+<span><a href="/addlink">add link</a></span>
+<span><a href="/logout?CSRF={{ .LogoutCSRF }}">logout</a></span>
+{{ else }}
+<span><a href="/rss">rss</a></span>
+{{ end }}
+<form action="/search" method="GET">
+<input tabindex=10 type="text" name="q" autocomplete=off size=18 placeholder="search">
+</form>
+</header>