Skip to content
8 changes: 8 additions & 0 deletions src/components/Pages/TermsOfUse/TermsOfUseRenderer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<v-main>
<hgroup>
<h1>Terms Of Use</h1>
<p v-if="policyActiveFrom" class="text-subtitle-1 text--secondary mb-2">Effective: {{ policyActiveFrom }}</p>
</hgroup>
<v-alert class="mt-8 mr-2 ml-2" outlined type="error" border="left" v-if="error">
An error occurred while trying to load the requested policy. Please try again later.
</v-alert>
Expand All @@ -14,6 +18,10 @@
This is an upcoming version. You can find the
<router-link class="white--text" to="/terms-of-use">current version here</router-link>.
</v-alert>
<v-alert type="info" v-if="!isUpcomingRoute && !isCurrentRoute">
This is an outdated version. You can find the
<router-link class="white--text" to="/terms-of-use">current version here</router-link>.
</v-alert>

<component :is="policy" v-if="policy" :active-from="policyMetadata && policyMetadata.active_from" />
</v-col>
Expand Down
7 changes: 0 additions & 7 deletions src/components/Pages/TermsOfUse/terms-of-use/version-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<h1>Terms Of Use</h1>
<p v-if="activeFrom" class="text-subtitle-1 text--secondary mb-2">Effective: {{ formattedActiveFrom }}</p>
</hgroup>

<p>
PLEASE READ THESE TERMS OF USE CAREFULLY BEFORE USING THE SERVICES.
BY ACCESSING THIS SITE OR USING ANY PART OF THE SITE OR ANY CONTENT
Expand Down Expand Up @@ -1293,12 +1292,6 @@ export default {
},
},
components: {},
computed: {
formattedActiveFrom () {
if (!this.activeFrom) return null
return new Date(this.activeFrom).toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' })
},
},
}
</script>

Expand Down
1 change: 0 additions & 1 deletion src/components/Pages/TermsOfUse/terms-of-use/version-2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<h1>Terms Of Use</h1>
<p v-if="activeFrom" class="text-subtitle-1 text--secondary mb-2">Effective: {{ formattedActiveFrom }}</p>
</hgroup>

<v-alert text color="info">
<div class="light-blue--text text--darken-4">
<div class="text-h6 mb-3">What changed from
Expand Down
Loading