From 54b78828220f6c864e8c439014caf7259499f23d 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 ca5b0fbcde1253c7f2a307ae29498cd7f42447e4..f889eec6db167e8cb740e8be5f2bce9807d7d9a3 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), }) }