honk/views/header.html

26 lines
718 B
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-04-09 13:59:33 +02:00
<link href="/icon.png" rel="icon">
<meta name="viewport" content="width=720px, initial-scale=0.4">
2019-04-09 13:59:33 +02:00
</head>
<body>
<div class="header">
<span><a href="/">honk</a></span>
{{ if .ShowRSS }}
<span><a href="/rss">rss</a></span>
{{ end }}
{{ if .UserInfo }}
<span><a href="/u/{{ .UserInfo.Username }}">{{ .UserInfo.Username }}</a></span>
<span><a href="/honkers">honkers</a></span>
<span><a href="/logout?CSRF={{ .LogoutCSRF }}">logout</a></span>
{{ else }}
<span><a href="/login">login</a></span>
{{ end }}
</div>