From 345865a45ea0dc80f8f1d87a7f583c55243508eb Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 12 Oct 2025 23:12:22 -0600 Subject: [PATCH] fix: correct HTML and color conversion in bug UI Fix invalid HTML syntax where status timeline footer tag was incorrectly duplicated instead of being closed properly. Add defensive conversion of RGBA color channels from 16-bit (0-65535) to 8-bit (0-255) before formatting as CSS hex colors to ensure valid color output for bug labels. References: bug-7d32125 --- pkg/web/templates/bug.html | 2 +- pkg/web/webui_bugs.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/web/templates/bug.html b/pkg/web/templates/bug.html index a77a2b00548e81a4eac474a4e87d3904469647aa..f37ae99d9035c74c9ef5f5bd5ace547bef852717 100644 --- a/pkg/web/templates/bug.html +++ b/pkg/web/templates/bug.html @@ -49,7 +49,7 @@ {{.Author}} {{.Status}} the bug.