From c09d095aefae9b457f098f57dbcfd920a3bd4765 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 12 Oct 2025 22:52:56 -0600 Subject: [PATCH] refactor: improve bug page semantic HTML structure Restructure bug timeline to use semantic article elements with proper headers and footers, improving accessibility and HTML structure. Implements: bug-9b4c17f --- pkg/web/templates/bug.html | 88 ++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 52 deletions(-) diff --git a/pkg/web/templates/bug.html b/pkg/web/templates/bug.html index 5e5da2b8f6a5089f38d3733242b61b7e673d0d67..a77a2b00548e81a4eac474a4e87d3904469647aa 100644 --- a/pkg/web/templates/bug.html +++ b/pkg/web/templates/bug.html @@ -7,80 +7,64 @@ -
-

- [{{.ID}}] {{.Title}} - {{.Status}} -

-

- {{.Author}} opened this bug on - - {{if .Edited}}(edited){{end}} -

- {{if .Labels}} -
- {{range .Labels}} - {{.Name}} - {{end}} -
- {{end}} -
-

Timeline

{{range .Timeline}}
{{if eq .Type "create"}} -

Initial description

+
+

{{$.Title}}

+
{{if .Message}} -
- {{.Message}} -
+ {{.Message}} {{else}} -

No description provided.

+ No description provided. {{end}} +
+ {{.Author}} opened this bug on + + {{if $.Edited}}(edited){{end}} +
{{else if eq .Type "comment"}} -

- {{.Author}} commented on - - {{if .Edited}}(edited){{end}} -

{{if .Message}} -
- {{.Message}} -
+ {{.Message}} {{else}} -

No comment provided.

+ No comment provided. {{end}} +
+ {{.Author}} commented on + + {{if .Edited}}(edited){{end}} +
{{else if eq .Type "title"}} -

- {{.Author}} changed the title to {{.Title}} on + {{.Author}} changed the title to {{.Title}}. +

-

+
{{else if eq .Type "status"}} -

- {{.Author}} {{.Status}} the bug on + {{.Author}} {{.Status}} the bug. +

{{end}}