layout.html
โއ
Raw
1{{define "layout"}}<!doctype html>
2<html lang="de">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<meta name="color-scheme" content="light dark">
7<title>{{template "title" .}} ยท {{.Practice}}</title>
8<link rel="stylesheet" href="/static/pico.min.css">
9<link rel="stylesheet" href="/static/style.css">
10<script src="/static/befund.js" defer></script>
11</head>
12<body>
13<header class="container">
14<nav>
15 <ul><li><a href="/" class="brand"><strong>{{.Practice}}</strong></a></li></ul>
16 {{if ne .Path "/login"}}
17 <ul>
18 <li><a href="/"{{if eq .Path "/"}} aria-current="page"{{end}}>Wissen</a></li>
19 <li><a href="/patienten"{{if eq .Path "/patienten"}} aria-current="page"{{end}}>Patienten</a></li>
20 <li><a href="/handouts"{{if eq .Path "/handouts"}} aria-current="page"{{end}}>Handouts</a></li>
21 <li>
22 <details class="dropdown">
23 <summary>+ Neu</summary>
24 <ul dir="rtl">
25 {{range .Kinds}}<li><a href="/eintrag/neu?art={{.Key}}">{{.Label}}</a></li>{{end}}
26 </ul>
27 </details>
28 </li>
29 </ul>
30 {{end}}
31</nav>
32</header>
33<main class="container">
34{{template "content" .}}
35</main>
36{{if ne .Path "/login"}}
37<footer class="container site-footer">
38 <form method="post" action="/logout" class="inline"><button type="submit" class="link">Abmelden</button></form>
39</footer>
40{{end}}
41</body>
42</html>{{end}}
43