From fe2c8634d330d44da61e57584dba668c135a4b10 Mon Sep 17 00:00:00 2001 From: Matthias Lindinger Date: Mon, 26 Aug 2019 14:55:41 +0200 Subject: Add link to imprint Signed-off-by: Matthias Lindinger --- lib/response.js | 1 + locales/de.json | 1 + locales/en.json | 1 + public/views/index/body.ejs | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index 1313f9f4..6450bdf5 100644 --- a/lib/response.js +++ b/lib/response.js @@ -70,6 +70,7 @@ function showIndex (req, res, next) { signin: authStatus, infoMessage: req.flash('info'), errorMessage: req.flash('error'), + imprint: fs.existsSync(path.join(config.docsPath, 'imprint.md')), privacyStatement: fs.existsSync(path.join(config.docsPath, 'privacy.md')), termsOfUse: fs.existsSync(path.join(config.docsPath, 'terms-of-use.md')), deleteToken: deleteToken diff --git a/locales/de.json b/locales/de.json index f99d8c1f..3f91244a 100644 --- a/locales/de.json +++ b/locales/de.json @@ -106,6 +106,7 @@ "Select Visibility Level": "Sichtbarkeit bestimmen", "Night Theme": "Nachtmodus", "Follow us on %s and %s.": "Folge uns auf %s und %s.", + "Imprint": "Impressum", "Privacy": "Datenschutz", "Terms of Use": "Nutzungsbedingungen", "Do you really want to delete your user account?": "Möchten Sie wirklich Ihr Nutzerkonto löschen?", diff --git a/locales/en.json b/locales/en.json index 9a601c04..4f661cf5 100644 --- a/locales/en.json +++ b/locales/en.json @@ -106,6 +106,7 @@ "Select Visibility Level": "Select Visibility Level", "Night Theme": "Night Theme", "Follow us on %s and %s.": "Follow us on %s, and %s.", + "Imprint": "Imprint", "Privacy": "Privacy", "Terms of Use": "Terms of Use", "Do you really want to delete your user account?": "Do you really want to delete your user account?", diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index d588766f..9234da2f 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -153,7 +153,7 @@

- <%- __('Powered by %s', 'CodiMD') %> | <%= __('Releases') %> | <%= __('Source Code') %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %> + <%- __('Powered by %s', 'CodiMD') %> | <%= __('Releases') %> | <%= __('Source Code') %><% if(imprint) { %> | <%= __('Imprint') %><% } %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %>

<%- __('Follow us on %s and %s.', ' GitHub, Discourse, Riot, Mastodon', ' POEditor') %> -- cgit v1.2.3