Skip to content

Commit

Permalink
BC-7510 - add training link back (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
odalys-dataport committed Jun 18, 2024
1 parent e7583c4 commit 545ebb1
Showing 1 changed file with 29 additions and 52 deletions.
81 changes: 29 additions & 52 deletions helpers/handlebars/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,58 +355,35 @@ module.exports = (req, res, next) => {
});
}
// helpArea view
if (Configuration.get('FEATURE_NEW_LAYOUT_ENABLED')) {
res.locals.sidebarItems.push({
name: res.$t('global.link.helpArea'),
testId: 'Hilfebereich',
icon: 'help-circle-outline',
link: '/help/',
groupName: 'help',
children: [
{
name: res.$t('help.headline.helpSection'),
testId: 'Hilfeartikel',
icon: 'file-question-outline',
link: '/help/articles/',
},
{
name: res.$t('global.link.contact'),
testId: 'Kontakt',
icon: 'chat-outline',
link: '/help/contact/',
},
],
});
} else {
res.locals.sidebarItems.push({
name: res.$t('global.link.helpArea'),
testId: 'Hilfebereich',
icon: 'help-circle-outline',
link: '/help/',
groupName: 'help',
children: [
{
name: res.$t('help.headline.helpSection'),
testId: 'Hilfeartikel',
icon: 'file-question-outline',
link: '/help/articles/',
},
{
name: res.$t('global.link.contact'),
testId: 'Kontakt',
icon: 'chat-outline',
link: '/help/contact/',
},
{
name: res.$t('lib.help_menu.link.training'),
testId: 'Fortbildungen',
icon: 'file-certificate-outline',
link: 'https://lernen.cloud/',
isExternalLink: true,
},
],
});
}
res.locals.sidebarItems.push({
name: res.$t('global.link.helpArea'),
testId: 'Hilfebereich',
icon: 'help-circle-outline',
link: '/help/',
groupName: 'help',
children: [
{
name: res.$t('help.headline.helpSection'),
testId: 'Hilfeartikel',
icon: 'file-question-outline',
link: '/help/articles/',
},
{
name: res.$t('global.link.contact'),
testId: 'Kontakt',
icon: 'chat-outline',
link: '/help/contact/',
},
{
name: res.$t('lib.help_menu.link.training'),
testId: 'Fortbildungen',
icon: 'file-certificate-outline',
link: 'https://lernen.cloud/',
isExternalLink: true,
},
],
});


// new sidebar

Expand Down

0 comments on commit 545ebb1

Please sign in to comment.