2026-08-29 00:19:06 +02:00
|
|
|
{{define "base"}}<!doctype html>
|
2026-11-28 11:11:28 +01:00
|
|
|
<html lang="{{if .Lang}}{{.Lang}}{{else}}en{{end}}"{{if .Theme}} data-theme="{{.Theme}}"{{end}}{{if .Palette}} data-palette="{{.Palette}}"{{end}} data-style="{{if .Style}}{{.Style}}{{else}}modern{{end}}">
|
2026-08-29 00:19:06 +02:00
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2026-09-01 14:11:33 +02:00
|
|
|
<title>{{.Title}}{{if .AppName}} · {{.AppName}}{{end}}</title>
|
2026-08-29 00:19:06 +02:00
|
|
|
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Crect%20width='100'%20height='100'%20rx='20'%20fill='%2314171e'/%3E%3Ctext%20x='50'%20y='71'%20font-size='58'%20font-family='system-ui,sans-serif'%20font-weight='700'%20fill='%230b82b8'%20text-anchor='middle'%3E{{.BrandInitial}}%3C/text%3E%3C/svg%3E">
|
|
|
|
|
<link rel="stylesheet" href="{{.BasePath}}/webui-static/bootstrap.min.css">
|
|
|
|
|
<link rel="stylesheet" href="{{.BasePath}}/webui-static/style.css">
|
|
|
|
|
<script src="{{.BasePath}}/webui-static/bootstrap.bundle.min.js" defer></script>
|
|
|
|
|
{{.ExtraHeadHTML}}
|
|
|
|
|
</head>
|
2026-08-31 14:13:01 +02:00
|
|
|
<body{{.BodyAttrs}}>
|
2026-08-29 00:19:06 +02:00
|
|
|
{{template "navbar" .}}
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="row">
|
2026-08-31 14:13:01 +02:00
|
|
|
<nav class="col-md-2 col-lg-2 sidebar d-md-block"{{.SidebarAttrs}}>
|
2026-08-29 00:19:06 +02:00
|
|
|
{{template "sidebar" .}}
|
|
|
|
|
</nav>
|
|
|
|
|
<main class="col-md-10 col-lg-10 ms-sm-auto px-md-4 py-3">
|
2026-10-31 14:04:45 +01:00
|
|
|
{{if .Flash}}<div class="alert alert-{{if eq .FlashKind "ok"}}success{{else if eq .FlashKind "info"}}info{{else}}danger{{end}}">{{.Flash}}</div>{{end}}
|
2026-08-29 00:19:06 +02:00
|
|
|
{{template "content" .}}
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{template "footer" .}}
|
|
|
|
|
{{.ExtraBodyHTML}}
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
{{end}}
|