go-examples/photoblog/templates/header.html

18 lines
460 B
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html>
2017-07-29 11:54:23 +00:00
<head><title>Photo blog</title></head>
<body>
2017-07-29 14:51:12 +00:00
<header>
<ul>
2017-07-29 17:22:11 +00:00
<li><a href="/">Home</a></li>
2017-07-29 14:51:12 +00:00
{{ 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>