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), }) }