guildgate/templates/header.html

16 lines
412 B
HTML

{{ define "header" }}
<!DOCTYPE html>
<html lang="en">
<head>
<title>GuildGate</title>
</head>
<h1>Guild Gate: {{.Title}}</h1>
<body>
<nav>
<div style="overflow: hidden;">
<p style="float: left;">Logged in as: {{.Username}}</p>
<p style="float: right;"><a href="/">Home</a> {{if .LoggedIn}}<a href="/logout">Logout</a> {{else}}<a href="/login">Login</a>{{end}}</p>
</div>
</nav>
{{end}}