Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EUbOPEN Web
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChEMBL
EUbOPEN
EUbOPEN Web
Commits
ac0b4a45
Commit
ac0b4a45
authored
3 years ago
by
David Mendez
Browse files
Options
Downloads
Patches
Plain Diff
Load privacy notice from backend
parent
fec89ad7
No related branches found
Branches containing commit
No related tags found
1 merge request
!41
Load privacy notice from backend
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pages/cookie_notice.vue
+6
-0
6 additions, 0 deletions
pages/cookie_notice.vue
pages/privacy_notice.vue
+34
-13
34 additions, 13 deletions
pages/privacy_notice.vue
with
40 additions
and
13 deletions
pages/cookie_notice.vue
+
6
−
0
View file @
ac0b4a45
...
...
@@ -7,6 +7,7 @@
This statement explains how we use cookies and your IP address on the
EUbOPEN website.
</p>
<p
class=
"text-justify"
><b>
Last updated:
</b>
{{
lastUpdated
}}
</p>
<h2
class=
"font-weight-light"
>
How we use cookies
</h2>
<br
/>
...
...
@@ -53,6 +54,11 @@
<
script
>
export
default
{
data
()
{
return
{
lastUpdated
:
'
28 October 2021
'
,
}
},
head
()
{
const
titleText
=
`Cookie Statement`
const
descriptionText
=
'
Read the cookie statement for the EUbOPEN Portal.
'
...
...
This diff is collapsed.
Click to expand it.
pages/privacy_notice.vue
+
34
−
13
View file @
ac0b4a45
<
template
>
<div>
<h1
class=
"font-weight-light"
>
Privacy Notice
</h1>
<v-divider
/>
<br
/>
<p
class=
"text-justify"
>
Click
<a
href=
"/DraftPrivacyNotice.pdf"
>
here
</a>
to download the DRAFT of
the privacy notice. Ths draft is generated by the EBI Data Protection
Engine (DPE). Once we agree on a final version, this page will be
generated with the data generated by the DPE.
</p>
<p
class=
"text-justify"
>
The PDF file was generated by printing the current record in the DPE.
</p>
<v-skeleton-loader
v-if=
"loading"
type=
"paragraph@3"
></v-skeleton-loader>
<template
v-else
>
<br
/>
<b>
Last updated:
{{
lastUpdated
}}
</b>
<br
/><br
/>
<div
v-html=
"body"
></div>
</
template
>
</div>
</template>
<
script
>
import
RequestNotifications
from
'
@/web-components-submodule/utils/RequestNotifications.js
'
import
ESProxyService
from
'
~/web-components-submodule/services/ESProxyService.js
'
export
default
{
data
()
{
return
{
loading
:
true
,
body
:
''
,
lastUpdated
:
''
,
}
},
head
()
{
const
titleText
=
`Privacy Notice`
const
descriptionText
=
'
Read the privacy notice for the EUbOPEN Portal.
'
...
...
@@ -53,6 +57,23 @@ export default {
],
}
},
mounted
()
{
const
privacyNoticePath
=
'
/eubopen/miscellaneous/privacy_notice
'
ESProxyService
.
getGenericData
(
privacyNoticePath
)
.
then
((
response
)
=>
{
this
.
lastUpdated
=
response
.
data
.
nodes
[
0
].
node
.
changed
this
.
body
=
response
.
data
.
nodes
[
0
].
node
.
body
this
.
loading
=
false
})
.
catch
((
error
)
=>
{
RequestNotifications
.
dispatchRequestErrorNotification
(
error
,
this
.
$store
.
dispatch
,
`There was an error while loading the privacy notice data!`
)
})
},
}
</
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment