Minor changes to layout
This commit is contained in:
@@ -3,26 +3,31 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
{{ if .User }}
|
<title>SynLotto</title>
|
||||||
<p>Hello, {{ .User.Username }} | <a href="/logout">Logout</a></p>
|
|
||||||
{{ else }}
|
|
||||||
<p><a href="/login">Login</a></p>
|
|
||||||
{{ end }}
|
|
||||||
<title>Lotto Tracker</title>
|
|
||||||
<style>
|
<style>
|
||||||
body { font-family: Arial, sans-serif; margin: 40px; }
|
body { font-family: Arial, sans-serif; margin: 40px; }
|
||||||
table { border-collapse: collapse; width: 100%; margin-top: 20px; }
|
table { border-collapse: collapse; width: 100%; margin-top: 20px; }
|
||||||
th, td { padding: 8px 12px; border: 1px solid #ddd; text-align: center; }
|
th, td { padding: 8px 12px; border: 1px solid #ddd; text-align: center; }
|
||||||
th { background-color: #f5f5f5; }
|
th { background-color: #f5f5f5; }
|
||||||
.form-section { margin-bottom: 20px; }
|
.form-section { margin-bottom: 20px; }
|
||||||
|
.topbar { margin-bottom: 20px; }
|
||||||
|
.flash { padding: 10px; color: green; background: #e9ffe9; border: 1px solid #c3e6c3; margin-bottom: 15px; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href="/logout">Logout</a>
|
<div class="topbar">
|
||||||
<h1>Lotto Tracker</h1>
|
{{ if .User }}
|
||||||
|
<p>Hello, {{ .User.Username }} | <a href="/logout">Logout</a></p>
|
||||||
|
{{ else }}
|
||||||
|
<p><a href="/login">Login</a></p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ if .Flash }}
|
||||||
|
<div class="flash">{{ .Flash }}</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ template "content" . }}
|
{{ template "content" . }}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user