feat(sub): show the announcement on the subscription info page

The subAnnounce setting was only emitted as a base64 Announce response header, which most client apps ignore and browsers never see. Pass it into the sub page view-model and render it as an info alert at the top of the card; custom themes get the announce key for free.

Closes #5276
This commit is contained in:
MHSanaei
2026-07-03 09:38:37 +02:00
parent 1f04912b6f
commit 323cf09d10
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -281,6 +281,7 @@ func (a *SUBController) serveSubPage(c *gin.Context, basePath string, page PageD
"links": page.Result,
"emails": page.Emails,
"datepicker": datepicker,
"announce": a.subAnnounce,
}
// When an admin has configured a custom subscription theme, render it