läuft
This commit is contained in:
29
templates/base.gohtml
Normal file
29
templates/base.gohtml
Normal file
@@ -0,0 +1,29 @@
|
||||
{{define "base"}}
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>{{block "title" .}}Kücheninventar{{end}}</title>
|
||||
<link rel="stylesheet" href="/assets/style.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<header class="container">
|
||||
<h1>🍳 Kücheninventar</h1>
|
||||
<nav>
|
||||
<a href="/">Dashboard</a>
|
||||
<a href="/products">Produkte</a>
|
||||
<a href="/alerts">Warnungen{{if .Alerts}} ({{.Alerts}}){{end}}</a>
|
||||
<a href="/shopping-list">Einkaufsliste</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="container">
|
||||
{{template "flash" .}}
|
||||
{{block "content" .}}{{end}}
|
||||
</main>
|
||||
<footer class="container muted">
|
||||
<p>© {{now | printf "%d"}} – Lokale Demo-App (Go + SQLite). Bilder bleiben lokal.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user