guildgate/templates/header.html

16 lines
430 B
HTML
Raw Normal View History

{{ define "header" }}
<!DOCTYPE html>
<html lang="en">
<head>
<title>GuildGate</title>
</head>
2020-09-17 16:47:17 -04:00
<h1>Guild Gate: {{.Title}}</h1>
<body>
<nav>
2020-09-17 16:47:17 -04:00
<div style="overflow: hidden;">
<p style="float: left;">Logged in as: {{.Username}}</p>
<p style="float: right;"><a href="/">Home</a> {{if .ShowLogin}}<a href="/login">Login</a> {{end}}{{if .ShowLogout}}<a href="/logout">Logout</a>{{end}}</p>
</div>
</nav>
{{end}}