Add config option to link to an imprint

This commit is contained in:
yflory
2020-01-20 14:53:02 +01:00
parent cbe407084d
commit e8b905282a
2 changed files with 12 additions and 1 deletions

View File

@@ -1,9 +1,10 @@
define([
'/common/hyperscript.js',
'/common/common-language.js',
'/customize/application_config.js',
'/customize/messages.js',
'jquery',
], function (h, Language, Msg, $) {
], function (h, Language, AppConfig, Msg, $) {
var Pages = {};
Pages.setHTML = function (e, html) {
@@ -58,6 +59,8 @@ define([
return h('a', attrs, text);
};
var imprintUrl = AppConfig.imprint && (typeof(AppConfig.imprint) === "boolean" ?
'/imprint.html' : AppConfig.imprint);
Pages.infopageFooter = function () {
return h('footer', [
h('div.container', [
@@ -94,6 +97,7 @@ define([
footerCol('footer_legal', [
footLink('/terms.html', 'footer_tos'),
footLink('/privacy.html', 'privacy'),
AppConfig.imprint ? footLink(imprintUrl, 'imprint') : undefined,
]),
/*footerCol('footer_contact', [
footLink('https://riot.im/app/#/room/#cryptpad:matrix.org', null, 'Chat'),