diff --git a/client/routes/router.js b/client/routes/router.js index a125c9eae6c..9c5a536f2e1 100644 --- a/client/routes/router.js +++ b/client/routes/router.js @@ -121,6 +121,15 @@ FlowRouter.route('/privacy-policy', { }, }); +FlowRouter.route('/legal-notice', { + name: 'legal-notice', + + action() { + Session.set('cmsPage', 'Layout_Legal_Notice'); + BlazeLayout.render('cmsPage'); + }, +}); + FlowRouter.route('/room-not-found/:type/:name', { name: 'room-not-found', diff --git a/packages/rocketchat-i18n/i18n/de.i18n.json b/packages/rocketchat-i18n/i18n/de.i18n.json index b735398094d..f907e55da16 100644 --- a/packages/rocketchat-i18n/i18n/de.i18n.json +++ b/packages/rocketchat-i18n/i18n/de.i18n.json @@ -1613,6 +1613,8 @@ "Layout_Sidenav_Footer": "Seitenfußzeile", "Layout_Sidenav_Footer_description": "Die Größe der Fußzeile beträgt 260 x 70 Pixel.", "Layout_Terms_of_Service": "Nutzungsbedingungen", + "Layout_Legal_Notice": "Impressum", + "Layout": "Layout", "LDAP": "LDAP", "LDAP_Authentication": "Aktivieren", "LDAP_Authentication_Password": "Passwort", diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 367de312676..99833b8c981 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -1680,6 +1680,7 @@ "Layout_Sidenav_Footer": "Side Navigation Footer", "Layout_Sidenav_Footer_description": "Footer size is 260 x 70px", "Layout_Terms_of_Service": "Terms of Service", + "Layout_Legal_Notice": "Legal Notice", "LDAP": "LDAP", "LDAP_Authentication": "Enable", "LDAP_Authentication_Password": "Password", diff --git a/packages/rocketchat-lib/server/startup/settings.js b/packages/rocketchat-lib/server/startup/settings.js index c114b842473..cfbd71788c0 100644 --- a/packages/rocketchat-lib/server/startup/settings.js +++ b/packages/rocketchat-lib/server/startup/settings.js @@ -1224,7 +1224,7 @@ settings.addGroup('Layout', function() { multiline: true, public: true, }); - this.add('Layout_Login_Terms', 'By proceeding you are agreeing to our Terms of Service and Privacy Policy.', { + this.add('Layout_Login_Terms', 'By proceeding you are agreeing to our Terms of Service, Privacy Policy and Legal Notice.', { type: 'string', multiline: true, public: true, @@ -1235,6 +1235,12 @@ settings.addGroup('Layout', function() { multiline: true, public: true, }); + this.add('Layout_Legal_Notice', 'Legal Notice
Go to APP SETTINGS -> Layout to customize this page.', { + type: 'code', + code: 'text/html', + multiline: true, + public: true, + }); return this.add('Layout_Sidenav_Footer', '', { type: 'code', code: 'text/html',