go-examples/photoblog/templates/header.html
2017-07-29 16:51:12 +02:00

18 lines
451 B
HTML

<!DOCTYPE html>
<html>
<head><title>Photo blog</title></head>
<body>
<header>
<ul>
<li><p>Home</p></li>
{{ if .Username }}
<li><p>Hello {{ .Username }}</p></li>
<li style="float: right"><a href="/logout">Logout</a></li>
{{ else }}
<li><p>You are not logged in</p></li>
<li style="float: right"><a href="/login">Login</a></li>
{{ end }}
</ul>
</header>
<main>