From d6e2dcc83612a70105ee14cc51600bd2ebe010dd Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 12 Oct 2025 23:28:27 -0600 Subject: [PATCH] fix(bug-list): fix meta display, mv comment count References: bug-3a06724 --- pkg/web/templates/bugs.html | 10 ++++++---- pkg/web/webui_bugs.go | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkg/web/templates/bugs.html b/pkg/web/templates/bugs.html index 1b8ff82dd378081270148c431de622553c8ccc5d..47e7fefe1213c2b6dbbad68ff39647f67d856cbb 100644 --- a/pkg/web/templates/bugs.html +++ b/pkg/web/templates/bugs.html @@ -18,15 +18,17 @@ {{.Title}} {{.Status}} -

+

{{end}} diff --git a/pkg/web/webui_bugs.go b/pkg/web/webui_bugs.go index 4f95fe74b82443897da91af1f161d480f247a925..1b3e9877c90d365d0e0090533c9e1a059c80e45a 100644 --- a/pkg/web/webui_bugs.go +++ b/pkg/web/webui_bugs.go @@ -46,6 +46,7 @@ type BugListItem struct { Status string CreatedAt time.Time LastActivity time.Time + HasActivity bool CommentCount int } @@ -139,6 +140,7 @@ func getBugsList(rc *cache.RepoCache, status string) ([]BugListItem, error) { Status: snap.Status.String(), CreatedAt: snap.CreateTime, LastActivity: getLastActivity(snap), + HasActivity: len(snap.Timeline) > 1, CommentCount: countComments(snap), }) }