feat: add status badge to bug detail page

Amolith and Crush created

Display open/closed status in bug title with badge styling
mirroring the bugs list view implementation.

Implements: bug-165b8f1
Co-Authored-By: Crush <crush@charm.land>

Change summary

pkg/web/templates/bug.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

pkg/web/templates/bug.html 🔗

@@ -14,7 +14,7 @@
   <article id="{{.ID}}" aria-labelledby="timeline-item-{{.ID}}">
     {{if eq .Type "create"}}
     <header>
-      <h4 id="timeline-item-{{.ID}}">{{$.Title}}</h4>
+      <h4 id="timeline-item-{{.ID}}">{{$.Title}} <span class="badge badge-{{$.Status}}">{{$.Status}}</span></h4>
     </header>
     {{if .Message}}
     {{.Message}}