2017-07-29 09:22:34 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2017-07-29 11:54:23 +00:00
|
|
|
<head><title>Photo blog</title></head>
|
2017-07-29 09:22:34 +00:00
|
|
|
<body>
|
2017-07-29 14:51:12 +00:00
|
|
|
<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>
|