honk/views/header.html

29 lines
796 B
HTML

<!doctype html>
<html>
<head>
<title>honk</title>
<link href="/style.css{{ .StyleParam }}" rel="stylesheet">
{{ if .LocalStyleParam }}
<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
{{ end }}
<link href="/icon.png" rel="icon">
<meta name="viewport" content="width=device-width">
</head>
<body>
<header>
<span><a href="/">honk</a></span>
{{ if .UserInfo }}
<span><a href="/atme">@me</a></span>
<span><a href="/u/{{ .UserInfo.Username }}">{{ .UserInfo.Username }}</a></span>
<span><a href="/honkers">honkers</a></span>
<span><a href="/c">combos</a></span>
<span><a href="/killzone">killzone</a></span>
<span><a href="/account">account</a></span>
{{ else }}
{{ if .ShowRSS }}
<span><a href="/rss">rss</a></span>
{{ end }}
<span><a href="/login">login</a></span>
{{ end }}
</header>