From fbeeb4085c5224be08a7c83e50e5447babbb2416 Mon Sep 17 00:00:00 2001 From: Martin Schuhmacher <55735359+MartinSchuhmacher@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:15:10 +0200 Subject: [PATCH] BC-6930 - enable new layout on prod (#3469) * removing GitHub link in sidebar for NBC * change position of release notes sidebar item --- helpers/handlebars/middleware.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) 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',