[NEW] legal notice page (#12472)

pull/12095/head^2
Marcus Schopen 7 years ago committed by Guilherme Gazzo
parent 36a0fc313a
commit fd47795f75
  1. 9
      client/routes/router.js
  2. 2
      packages/rocketchat-i18n/i18n/de.i18n.json
  3. 1
      packages/rocketchat-i18n/i18n/en.i18n.json
  4. 8
      packages/rocketchat-lib/server/startup/settings.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',

@ -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",

@ -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",

@ -1224,7 +1224,7 @@ settings.addGroup('Layout', function() {
multiline: true,
public: true,
});
this.add('Layout_Login_Terms', 'By proceeding you are agreeing to our <a href="terms-of-service">Terms of Service</a> and <a href="privacy-policy">Privacy Policy</a>.', {
this.add('Layout_Login_Terms', 'By proceeding you are agreeing to our <a href="terms-of-service">Terms of Service</a>, <a href="privacy-policy">Privacy Policy</a> and <a href="legal-notice">Legal Notice</a>.', {
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 <br> Go to APP SETTINGS -> Layout to customize this page.', {
type: 'code',
code: 'text/html',
multiline: true,
public: true,
});
return this.add('Layout_Sidenav_Footer', '<a href="/home"><img src="assets/logo"/></a>', {
type: 'code',
code: 'text/html',

Loading…
Cancel
Save