From 6d07127b5344f2c82c29e996a9b1381dda2df16a Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Sun, 4 May 2025 10:53:15 -0700 Subject: [PATCH] Add ISO 27001 document header Signed-off-by: Bryan Frimin --- .../organizations/policies/ShowPolicyView.tsx | 63 +++++++++++++------ 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx b/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx index 90f4f5210..bd52bfe2e 100644 --- a/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx +++ b/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx @@ -364,32 +364,57 @@ function ShowPolicyContent({ >
{latestVersionNode ? ( -
- {latestVersionNode.changelog && ( -
-
- Change summary + <> +
+
+
+ Document Title: {policy.title}
-
- {latestVersionNode.changelog} +
+ Version: {latestVersionNode.version || "N/A"} +
+
+ Status: {latestVersionNode.status === "PUBLISHED" ? "Published" : "Draft"} +
+
+ Published Date: {latestVersionNode.status === "PUBLISHED" ? formatDate(latestVersionNode.publishedAt || "") : "Not yet published"} +
+
+ Owner: {policy.owner?.fullName || "Unknown"} +
+
+ Last Modified: {formatDate(latestVersionNode.updatedAt)}
- )} - -
- - {latestVersionNode.content || "No content available"} -
-
-
- {latestVersionNode.status === "PUBLISHED" - ? `Published on ${formatDate(latestVersionNode.publishedAt || "")}${latestVersionNode.publishedBy ? ` by ${latestVersionNode.publishedBy.fullName}` : ""}` - : `Last modified on ${formatDate(latestVersionNode.updatedAt)} by ${policy.owner?.fullName || "Unknown"}`} +
+ {latestVersionNode.changelog && ( +
+
+ Change summary +
+
+ {latestVersionNode.changelog} +
+
+ )} + +
+ + {latestVersionNode.content || "No content available"} + +
+ +
+
+ {latestVersionNode.status === "PUBLISHED" + ? `Published on ${formatDate(latestVersionNode.publishedAt || "")}${latestVersionNode.publishedBy ? ` by ${latestVersionNode.publishedBy.fullName}` : ""}` + : `Last modified on ${formatDate(latestVersionNode.updatedAt)} by ${policy.owner?.fullName || "Unknown"}`} +
-
+ ) : (
No content available