- Replace internal/auth with mcdsl/auth - Replace internal/config with mcdsl/config (embed config.Base) - Replace internal/webserver/csrf.go with mcdsl/csrf - Use mcdsl/web for session cookies and template rendering - Use mcdsl/httpserver for server setup and StatusWriter - Remove direct mcias client library dependency - Update .golangci.yaml to v2 format (formatters section) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
892 B
HTML
28 lines
892 B
HTML
{{define "layout"}}<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>mcat{{block "title" .}}{{end}}</title>
|
|
<script src="/static/htmx.min.js"></script>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<nav class="topnav">
|
|
<a href="/" class="topnav-brand">mcat</a>
|
|
{{if .Username}}
|
|
<div class="topnav-right">
|
|
<span class="topnav-user">{{.Username}}</span>
|
|
<form method="POST" action="/logout" style="margin:0">
|
|
{{csrfField}}
|
|
<button type="submit" class="btn-ghost btn">Logout</button>
|
|
</form>
|
|
</div>
|
|
{{end}}
|
|
</nav>
|
|
<div class="{{block "container-class" .}}page-container{{end}}">
|
|
{{template "content" .}}
|
|
</div>
|
|
</body>
|
|
</html>{{end}}
|