summaryrefslogtreecommitdiff
path: root/views/header.html
diff options
context:
space:
mode:
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>