aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting_email.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-04-25 16:04:23 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-04-26 11:50:12 +0200
commitca8bc64d93af67c23642000020cd08760fa3b5f3 (patch)
treed50f4adaa672cd90bb7d39b34141608e0b0847ff /dashboard/app/reporting_email.go
parent7560799c75f65327fe726b5b4b256d23b341709c (diff)
dashboard: include month into monthly reports
To make reports better distinguishable, include the month and the year when the report was generated. E.g. "Monthly ext4 report (Jan 2000)".
Diffstat (limited to 'dashboard/app/reporting_email.go')
-rw-r--r--dashboard/app/reporting_email.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/dashboard/app/reporting_email.go b/dashboard/app/reporting_email.go
index 6119411f6..9cce961df 100644
--- a/dashboard/app/reporting_email.go
+++ b/dashboard/app/reporting_email.go
@@ -372,9 +372,10 @@ func emailListReport(c context.Context, rep *dashapi.BugListReport, cfg *EmailCo
templateName: "mail_subsystem.txt",
templateArg: args,
cfg: cfg,
- title: fmt.Sprintf("Monthly %s report", rep.Subsystem),
- reportID: rep.ID,
- maintainers: rep.Maintainers,
+ title: fmt.Sprintf("Monthly %s report (%s)",
+ rep.Subsystem, rep.Created.Format("Jan 2006")),
+ reportID: rep.ID,
+ maintainers: rep.Maintainers,
})
}