diff --git a/helpers/handlebars/middleware.js b/helpers/handlebars/middleware.js index 49e2cfc1c9..2ec2dc1f36 100644 --- a/helpers/handlebars/middleware.js +++ b/helpers/handlebars/middleware.js @@ -383,7 +383,7 @@ module.exports = (req, res, next) => { }, ], }); - + // new sidebar @@ -400,12 +400,6 @@ module.exports = (req, res, next) => { }); } - systemLinks.push({ - name: res.$t('lib.help_menu.link.releaseNotes'), - link: '/help/releases', - testId: 'releases', - }); - if (SC_THEME !== 'default') { systemLinks.push({ link: res.locals.theme.documents.specificFiles.accessibilityStatement, @@ -416,12 +410,20 @@ module.exports = (req, res, next) => { } systemLinks.push({ - name: res.$t('lib.global.link.github'), - link: 'https://github.com/hpi-schul-cloud', - testId: 'github', - isExternalLink: true, + name: res.$t('lib.help_menu.link.releaseNotes'), + link: '/help/releases', + testId: 'releases', }); + if (SC_THEME !== 'n21') { + systemLinks.push({ + name: res.$t('lib.global.link.github'), + link: 'https://github.com/hpi-schul-cloud', + testId: 'github', + isExternalLink: true, + }); + } + if (SC_THEME === 'default') { systemLinks.push({ link: '/security',