From 545ebb18e7128cd153c3a36f935705c5990a3d07 Mon Sep 17 00:00:00 2001 From: odalys-dataport <82401838+odalys-dataport@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:37:58 +0200 Subject: [PATCH] BC-7510 - add training link back (#3458) --- helpers/handlebars/middleware.js | 81 ++++++++++++-------------------- 1 file changed, 29 insertions(+), 52 deletions(-) diff --git a/helpers/handlebars/middleware.js b/helpers/handlebars/middleware.js index 0b65d643e2..49e2cfc1c9 100644 --- a/helpers/handlebars/middleware.js +++ b/helpers/handlebars/middleware.js @@ -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