coller/src/server/templates/create.html
Julien Riou 8edaebfad6
All checks were successful
/ pre-commit (push) Successful in 2m59s
feat: Add web view to display notes in HTML
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-28 09:46:44 +02:00

30 lines
No EOL
677 B
HTML

{{define "create"}}
<!DOCTYPE html>
<html lang="en" data-bs-theme="light">
{{block "head" .}}{{end}}
<body>
{{block "header" .}}{{end}}
<div class="container mb-4 text-center">
{{if eq .Err nil}}
<div class="alert alert-success" role="alert">
<p>Note created successfully</p>
<p>
<a href="{{.URL}}.html">{{.URL}}.html</a>
</p>
</div>
{{else}}
<div class="alert alert-danger" role="alert">
<p>Could not create note</p>
<p><strong>{{.Err}}</strong></p>
</div>
{{end}}
</div>
{{block "footer" .}}{{end}}
</body>
</html>
{{end}}