aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/dashboard/sections.html
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-17 17:09:01 +0300
committergrm <grm@eyesin.space>2026-09-17 17:09:28 +0300
commitf16bd0f79c624665580615321b5d13b4be27cdad (patch)
tree3f7c47fdd8c8ff2e928b04891dfa65ed3ffe8c75 /internal/web/templates/dashboard/sections.html
parentf79f97800f7f9ba1ef2b3e2e56040a952a9668a5 (diff)
downloadblogspace-f16bd0f79c624665580615321b5d13b4be27cdad.tar.gz
blogspace-f16bd0f79c624665580615321b5d13b4be27cdad.tar.bz2
blogspace-f16bd0f79c624665580615321b5d13b4be27cdad.zip
Add the Gizmo look for announcements: framed boxes that share a row
gizmolab's "next event" and "next assembly" boxes were hand-written HTML in the home page's intro; they are announcements by nature, so now they can be: a fourth style, a box framed in the theme's link colour with an italic heading. Headed Gizmo boxes in the same spot share a row on wide screens (the notices wrapper is a flex row, stacking on old browsers like .cols); one without a heading takes the whole row, which is how a banner line goes above a pair of boxes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal/web/templates/dashboard/sections.html')
-rw-r--r--internal/web/templates/dashboard/sections.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/templates/dashboard/sections.html b/internal/web/templates/dashboard/sections.html
index 4d62f29..9f0e314 100644
--- a/internal/web/templates/dashboard/sections.html
+++ b/internal/web/templates/dashboard/sections.html
@@ -17,7 +17,7 @@
</td>
<td><a href="{{$u}}/{{.ID}}/edit">{{if .Title}}{{.Title}}{{else}}({{t "untitled"}}){{end}}</a>{{if not .Enabled}}<span class="tag off">{{t "hidden"}}</span>{{end}}</td>
<td>{{if eq .Column "main"}}{{t "Main content"}}{{else if eq .Column "left"}}{{t "Left column"}}{{else}}{{t "Right column"}}{{end}}, {{t .Position}}</td>
- <td>{{if eq .Style "note"}}{{t "Highlighted"}}{{else if eq .Style "warning"}}{{t "Warning"}}{{else}}{{t "Plain"}}{{end}}</td>
+ <td>{{if eq .Style "note"}}{{t "Highlighted"}}{{else if eq .Style "warning"}}{{t "Warning"}}{{else if eq .Style "gizmo"}}{{t "Gizmo"}}{{else}}{{t "Plain"}}{{end}}</td>
<td class="nowrap">
<form method="post" action="{{$u}}/{{.ID}}/toggle" class="inline"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><button class="mini">{{if .Enabled}}{{t "Hide"}}{{else}}{{t "Show"}}{{end}}</button></form>
<a class="danger" href="{{$u}}/{{.ID}}/delete">{{t "delete"}}</a>