Include website origin in tracker policy title
An organization can run several websites, each with its own banner and generated policy. Add the banner origin to the document title and the rendered heading so the policies are distinguishable in document lists and the trust center. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Cookie and Tracking Technologies Policy
|
||||
# Cookie and Tracking Technologies Policy for {{ .WebsiteOrigin }}
|
||||
|
||||
_Last updated: {{ formatDate .GeneratedAt }}_
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ func (s *GeneratedDocumentService) PublishTrackerPolicy(
|
||||
ID: documentVersionID,
|
||||
OrganizationID: banner.OrganizationID,
|
||||
DocumentID: document.ID,
|
||||
Title: "Cookie and Tracking Technologies Policy",
|
||||
Title: fmt.Sprintf("Cookie and Tracking Technologies Policy — %s", banner.Origin),
|
||||
Content: prosemirrorJSON,
|
||||
Classification: coredata.DocumentClassificationPublic,
|
||||
DocumentType: coredata.DocumentTypePolicy,
|
||||
|
||||
Reference in New Issue
Block a user