[TASK] Add posibility for links DSGVO

This commit is contained in:
Xaver Maierhofer 2018-05-24 00:51:41 +02:00
parent 100cf626a5
commit 3085c14c3b
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
3 changed files with 25 additions and 0 deletions

View File

@ -118,6 +118,16 @@ module.exports = function () {
'site': 'ffrgb',
'name': 'Regensburg'
}
],
'linkList': [
{
'title': 'Impressum',
'href': '/verein/impressum/'
},
{
'title': 'Datenschutz',
'href': '/verein/datenschutz/'
}
]
};
};

View File

@ -36,6 +36,17 @@ define(['helper'], function (helper) {
p.appendChild(stats);
p.appendChild(document.createElement('br'));
p.appendChild(timestamp);
if (config.linkList) {
p.appendChild(document.createElement('br'));
config.linkList.forEach(function (link) {
var a = document.createElement('a');
a.innerText = link.title;
a.href = link.href;
p.appendChild(a);
});
}
el.appendChild(p);
};

View File

@ -17,6 +17,10 @@ header {
}
.legend {
a {
margin-right: 10px;
}
span {
&:not(:first-child) {
margin-left: 1em;