This repository has been archived on 2022-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
elon-eats-my-tweets/templates/views/base.html

19 lines
490 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{block "title" .}}Elon Eats My Tweets{{end}}</title>
</head>
<body>
<h1>Elon eats my tweets</h1>
{{if not .CurrentUser.IsNil}}
<p>
Logged in as @{{.CurrentUser.TwitterUsername}}
<form id="logout_form" action="/logout" method="post"></form>
<a href="/logout" onclick="document.getElementById('logout_form').submit(); return false;">Log out</a>
</p>
{{end}}
{{template "content" .}}
</body>
</html>