Skip to content

Commit

Permalink
BC-6930 - enable new layout on prod (#3469)
Browse files Browse the repository at this point in the history
* removing GitHub link in sidebar for NBC
* change position of release notes sidebar item
  • Loading branch information
MartinSchuhmacher authored Jul 2, 2024
1 parent ab9840f commit fbeeb40
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions helpers/handlebars/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ module.exports = (req, res, next) => {
},
],
});


// new sidebar

Expand All @@ -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,
Expand All @@ -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',
Expand Down

0 comments on commit fbeeb40

Please sign in to comment.