diff --git a/src/components/Pages/Components/PolicyNavigationPanel.vue b/src/components/Pages/Components/PolicyNavigationPanel.vue index d711e6ef..7492b8b8 100644 --- a/src/components/Pages/Components/PolicyNavigationPanel.vue +++ b/src/components/Pages/Components/PolicyNavigationPanel.vue @@ -144,15 +144,22 @@ export default { return `${this.basePath}/${activeFrom}` }, + formatActiveFrom (activeFrom) { + if (!activeFrom) { + return '' + } + + return new Date(activeFrom).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' }) + }, titleForPolicy ({ activeFrom, isCurrentPolicy, isUpcomingPolicy }) { if (isCurrentPolicy) { - return 'Current version' + return `${this.formatActiveFrom(activeFrom)} (current)` } if (isUpcomingPolicy) { return 'Upcoming version' + } else { + return `${this.formatActiveFrom(activeFrom)}` } - - return activeFrom }, }, mounted () { diff --git a/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue b/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue index b8dfe777..cc402003 100644 --- a/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue +++ b/src/components/Pages/HostingPolicy/HostingPolicyRenderer.vue @@ -15,7 +15,7 @@ current version here. - + diff --git a/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue b/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue index 728dc623..729e5363 100644 --- a/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue +++ b/src/components/Pages/HostingPolicy/hosting-policy/version-1.vue @@ -1,8 +1,12 @@