Skip to content

Commit 1bfac04

Browse files
committed
remove banner, remove link
1 parent 982416d commit 1bfac04

File tree

8 files changed

+6
-85
lines changed

8 files changed

+6
-85
lines changed

config/default.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
},
377377
"FEATURE_LERNSTORE_ENABLED": {
378378
"type": "boolean",
379-
"default": true,
379+
"default": false,
380380
"description": "Defines if backend for the Lern-Store link in sidebar is enabled."
381381
},
382382
"FEATURE_TSP_AUTO_CONSENT_ENABLED": {

controllers/dashboard.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const api = require('../api');
1212
const timesHelper = require('../helpers/timesHelper');
1313

1414
const recurringEventsHelper = require('../helpers/recurringEvents');
15-
const { SC_THEME } = require('../config/global');
1615

1716
// secure routes
1817
router.use(authHelper.authChecker);
@@ -361,19 +360,6 @@ router.get('/', (req, res, next) => {
361360
);
362361
}
363362

364-
const translateKeyInfobanner = () => {
365-
switch (SC_THEME) {
366-
case 'n21':
367-
return 'dashboard.text.lernStoreBannerItem0_n21';
368-
case 'thr':
369-
return 'dashboard.text.lernStoreBannerItem0_thr';
370-
case 'brb':
371-
return 'dashboard.text.lernStoreBannerItem0_brb';
372-
default:
373-
return 'dashboard.text.lernStoreBannerItem0_dbc';
374-
}
375-
};
376-
377363
res.render('dashboard/dashboard', {
378364
title: res.$t('dashboard.headline.title'),
379365
events: events.reverse(),
@@ -394,7 +380,6 @@ router.get('/', (req, res, next) => {
394380
news,
395381
hours,
396382
currentTimePercentage,
397-
translateKeyInfoBanner: translateKeyInfobanner(),
398383
showNewReleaseModal: newRelease,
399384
currentTime: timesHelper.fromUTC(currentTime).format('HH:mm'),
400385
isTeacher: hasRole(teacher),

helpers/handlebars/middleware.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,6 @@ module.exports = (req, res, next) => {
143143
link: '/calendar/',
144144
}];
145145

146-
// Lern-Store Feature Toggle
147-
if (Configuration.get('FEATURE_LERNSTORE_ENABLED') === true) {
148-
res.locals.sidebarItems.push({
149-
name: res.$t('global.link.lernstore'),
150-
testId: 'sidebar-learningstore',
151-
icon: // eslint-disable-next-line max-len
152-
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>library-outline</title><path d="M12 14.27L10.64 13C9.09 11.57 7.16 10.57 5 10.18V17.13C7.61 17.47 10 18.47 12 19.95C14 18.47 16.39 17.47 19 17.13V10.18C16.84 10.57 14.91 11.57 13.36 13M19 8.15C19.65 8.05 20.32 8 21 8V19C17.5 19 14.36 20.35 12 22.54C9.64 20.35 6.5 19 3 19V8C3.68 8 4.35 8.05 5 8.15C7.69 8.56 10.1 9.78 12 11.54C13.9 9.78 16.31 8.56 19 8.15M12 6C12.27 6 12.5 5.9 12.71 5.71C12.9 5.5 13 5.27 13 5S12.9 4.5 12.71 4.29C12.5 4.11 12.27 4 12 4S11.5 4.11 11.29 4.29C11.11 4.5 11 4.74 11 5S11.11 5.5 11.29 5.71C11.5 5.9 11.74 6 12 6M14.12 7.12C13.56 7.68 12.8 8 12 8S10.44 7.68 9.88 7.12C9.32 6.56 9 5.8 9 5S9.32 3.44 9.88 2.88C10.44 2.32 11.2 2 12 2S13.56 2.32 14.12 2.88 15 4.2 15 5 14.68 6.56 14.12 7.12Z" /></svg>',
153-
isExternalIcon: true,
154-
link: '/content/',
155-
permission: 'LERNSTORE_VIEW',
156-
});
157-
}
158-
159146
// Media shelf Feature Toggle
160147
const mediaShelfEnabled = Configuration.get('FEATURE_MEDIA_SHELF_ENABLED');
161148
if (mediaShelfEnabled) {

locales/de.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,7 @@
10141014
"noDueDate": "Kein Abgabedatum festgelegt",
10151015
"noMaterialsYetLookAtOthers": "Sie haben noch keine eigenen Materialien erstellt. Sie können sich aber auch Inspiration in Materialien Ihrer Kolleg:innen holen. Schauen Sie doch im <a href=\"/my-material\">\"Meine Materialien\"-Abschnitt</a> vorbei.",
10161016
"noNews": "Keine Neuigkeiten",
1017-
"notFound": "Keine aktuellen Einträge vorhanden.",
1018-
"lernStoreBannerTitle": "Die Medien sind künftig über das Medienregal erreichbar",
1019-
"lernStoreBannerItem0_dbc": "Ab sofort sind die Mediatheken aus dem Lern-Store (Mundo und Wir lernen online) über das Medienregal verfügbar und die Inhalte können in Bereichen als Tool eingebunden werden. Weitere Infos zu den erweiterten Such- und Filtermöglichkeiten sowie der Einbindung von Inhalten via Deeplink sind auf den <a href=\"https://dbildungscloud.de/help/confluence/44073000\">Hilfeseiten</a> zu finden.",
1020-
"lernStoreBannerItem0_n21": "Ab sofort sind die Mediatheken aus dem Lern-Store (Mundo und Wir lernen online) über das Medienregal verfügbar und die Inhalte können in Bereichen als Tool eingebunden werden. Weitere Infos zu den erweiterten Such- und Filtermöglichkeiten sowie der Einbindung von Inhalten via Deeplink sind auf den <a href=\"https://niedersachsen.cloud/help/confluence/44073000\">Hilfeseiten</a> zu finden.",
1021-
"lernStoreBannerItem0_brb": "Ab sofort sind die Mediatheken aus dem Lern-Store (Mundo, Wir lernen online und FWU-Medien) über das Medienregal verfügbar und die Inhalte können in Bereichen als Tool eingebunden werden. Weitere Infos zu den erweiterten Such- und Filtermöglichkeiten sowie der Einbindung von Inhalten via Deeplink sind auf den <a href=\"https://brandenburg.cloud/help/confluence/44073000\">Hilfeseiten</a> zu finden.",
1022-
"lernStoreBannerItem0_thr": "Ab sofort sind die Mediatheken aus dem Lern-Store (Mundo, Wir lernen online und Mediothek/Pixiothek) über das Medienregal verfügbar und die Inhalte können in Bereichen als Tool eingebunden werden. Weitere Infos zu den erweiterten Such- und Filtermöglichkeiten sowie der Einbindung von Inhalten via Deeplink sind auf den <a href=\"https://schulcloud-thueringen.de/help/confluence/44073000\">Hilfeseiten</a> zu finden.",
1023-
"lernStoreBannerItem1": "Der Lern-Store wird daher in KW 10 (04.03.2026) abgeschaltet. In den Themen bereits eingebundene Lern-Store-Inhalte sind weiterhin verfügbar."
1017+
"notFound": "Keine aktuellen Einträge vorhanden."
10241018
}
10251019
},
10261020
"dataprivacy": {

locales/en.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,7 @@
10141014
"noDueDate": "No submission date set",
10151015
"noMaterialsYetLookAtOthers": "You have not yet created your own materials. But you can also get inspiration from your colleagues' materials. Check out the <a href=\"/my-material\">\"My Materials\" section</a> .",
10161016
"noNews": "No news",
1017-
"notFound": "No active entries found.",
1018-
"lernStoreBannerTitle": "In the future, the media will be accessible via the media shelf",
1019-
"lernStoreBannerItem0_dbc": "From now on, the media libraries from Learning Store (Mundo and Wir lernen online) are available via the media shelf, and the contents can be integrated into areas as a tool. Further information on the extended search and filter options as well as the integration of content via deep links can be found on the <a href=\"https://dbildungscloud.de/help/confluence/44073000\">help pages</a>.",
1020-
"lernStoreBannerItem0_n21": "From now on, the media libraries from Learning Store (Mundo and Wir lernen online) are available via the media shelf, and the contents can be integrated into areas as a tool. Further information on the extended search and filter options as well as the integration of content via deep links can be found on the <a href=\"https://niedersachsen.cloud/help/confluence/44073000\">help pages</a>.",
1021-
"lernStoreBannerItem0_brb": "From now on, the media libraries from Learning Store (Mundo, Wir lernen online and FWU-Media) are available via the media shelf, and the contents can be integrated into areas as a tool. Further information on the extended search and filter options as well as the integration of content via deep links can be found on the <a href=\"https://brandenburg.cloud/help/confluence/44073000\">help pages</a>.",
1022-
"lernStoreBannerItem0_thr": "From now on, the media libraries from Learning Store (Mundo, Wir lernen online and Mediothek/Pixiothek) are available via the media shelf, and the contents can be integrated into areas as a tool. Further information on the extended search and filter options as well as the integration of content via deep links can be found on the <a href=\"https://schulcloud-thueringen.de/help/confluence/44073000\">help pages</a>.",
1023-
"lernStoreBannerItem1": "The Learning Store will therefore be shut down in week 10 (03/04/2026). Learning Store content already integrated into topics will remain available."
1017+
"notFound": "No active entries found."
10241018
}
10251019
},
10261020
"dataprivacy": {

locales/es.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,7 @@
10141014
"noDueDate": "No se ha fijado una fecha de envío",
10151015
"noMaterialsYetLookAtOthers": "Aún no has creado tus propios materiales. También puedes inspirarte en los materiales de tus compañeros. Consulta la <a href=\"/my-material\">sección \"Mis materiales\"</a>.",
10161016
"noNews": "No hay noticias",
1017-
"notFound": "No se han encontrado entradas activas.",
1018-
"lernStoreBannerTitle": "En el futuro, los medios estarán disponibles a través del estante de medios",
1019-
"lernStoreBannerItem0_dbc": "A partir de ahora, las mediatecas del Lern-store (Mundo y Wir lernen online) están disponibles a través del estante de medios y los contenidos pueden integrarse en áreas como herramienta. Más información sobre las opciones avanzadas de búsqueda y filtrado, así como la integración de contenidos mediante enlaces profundos, se encuentra en las <a href=\"https://dbildungscloud.de/help/confluence/44073000\">páginas de ayuda</a>.",
1020-
"lernStoreBannerItem0_n21": "A partir de ahora, las mediatecas del Lern-store (Mundo y Wir lernen online) están disponibles a través del estante de medios y los contenidos pueden integrarse en áreas como herramienta. Más información sobre las opciones avanzadas de búsqueda y filtrado, así como la integración de contenidos mediante enlaces profundos, se encuentra en las <a href=\"https://niedersachsen.cloud/help/confluence/44073000\">páginas de ayuda</a>.",
1021-
"lernStoreBannerItem0_brb": "A partir de ahora, las mediatecas del Lern-store (Mundo, Wir lernen online y FWU-Medios) están disponibles a través del estante de medios y los contenidos pueden integrarse en áreas como herramienta. Más información sobre las opciones avanzadas de búsqueda y filtrado, así como la integración de contenidos mediante enlaces profundos, se encuentra en las <a href=\"https://brandenburg.cloud/help/confluence/44073000\">páginas de ayuda</a>.",
1022-
"lernStoreBannerItem0_thr": "A partir de ahora, las mediatecas del Lern-store (Mundo, Wir lernen online y Mediothek/Pixiothek) están disponibles a través del estante de medios y los contenidos pueden integrarse en áreas como herramienta. Más información sobre las opciones avanzadas de búsqueda y filtrado, así como la integración de contenidos mediante enlaces profundos, se encuentra en las <a href=\"https://schulcloud-thueringen.de/help/confluence/44073000\">páginas de ayuda</a>.",
1023-
"lernStoreBannerItem1": "Por lo tanto, el Lern-store se desconectará en la semana 10 (04.03.2026). Los contenidos del Lern-store ya integrados en los temas seguirán estando disponibles."
1017+
"notFound": "No se han encontrado entradas activas."
10241018
}
10251019
},
10261020
"dataprivacy": {

locales/uk.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@
1717
"noDueDate": "Дата подання не встановлена",
1818
"noMaterialsYetLookAtOthers": "Ви ще не створили власні матеріали. Але ви також можете черпати натхнення з матеріалів своїх колег. Перевірте <a href=\"/my-material\">Розділ «Мої матеріали»</a>.",
1919
"graded": "Оцінено",
20-
"handedIn": "Подані",
21-
"lernStoreBannerTitle": "У майбутньому медіа будуть доступні через медіаполицю",
22-
"lernStoreBannerItem0_dbc": "З цього моменту медіатеки з Навчальний магазин (Mundo і Wir lernen online) доступні через медіаполицю, а вміст можна інтегрувати в розділи як інструмент. Додаткову інформацію про розширені можливості пошуку та фільтрації, а також інтеграцію вмісту через глибокі посилання можна знайти на <a href=\"https://dbildungscloud.de/help/confluence/44073000\">сторінках допомоги</a>.",
23-
"lernStoreBannerItem0_n21": "З цього моменту медіатеки з Навчальний магазин (Mundo і Wir lernen online) доступні через медіаполицю, а вміст можна інтегрувати в розділи як інструмент. Додаткову інформацію про розширені можливості пошуку та фільтрації, а також інтеграцію вмісту через глибокі посилання можна знайти на <a href=\"https://niedersachsen.cloud/help/confluence/44073000\">сторінках допомоги</a>.",
24-
"lernStoreBannerItem0_brb": "З цього моменту медіатеки з Навчальний магазин (Mundo, Wir lernen online та FWU-Медіа) доступні через медіаполицю, а вміст можна інтегрувати в розділи як інструмент. Додаткову інформацію про розширені можливості пошуку та фільтрації, а також інтеграцію вмісту через глибокі посилання можна знайти на <a href=\"https://brandenburg.cloud/help/confluence/44073000\">сторінках допомоги</a>.",
25-
"lernStoreBannerItem0_thr": "З цього моменту медіатеки з Навчальний магазин (Mundo, Wir lernen online та Mediothek/Pixiothek) доступні через медіаполицю, а вміст можна інтегрувати в розділи як інструмент. Додаткову інформацію про розширені можливості пошуку та фільтрації, а також інтеграцію вмісту через глибокі посилання можна знайти на <a href=\"https://schulcloud-thueringen.de/help/confluence/44073000\">сторінках допомоги</a>.",
26-
"lernStoreBannerItem1" : "Тому Навчальний магазин буде вимкнено в 10-му тижні (04.03.2026). Вміст Навчальний магазин, вже інтегрований у теми, залишиться доступним."
20+
"handedIn": "Подані"
2721
},
2822
"img_alt": {
2923
"showAppointmentInTeam": "Показати призначення в команді",

views/dashboard/dashboard.hbs

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
{{/if}}
7777

7878

79-
{{!-- Announcement template for single text from config mapping to given translation key. Uncomment and fill in config to reactivate.
79+
{{!-- Announcement template for single text from config mapping to given translation key. Uncomment and fill in config to reactivate. --}}
8080
{{#hasConfig "DASHBOARD_ANNOUNCEMENT_TEXT"}}
8181
{{#hasConfig "DASHBOARD_ANNOUNCEMENT_ROLES"}}
8282
{{#ifneq (getConfig "DASHBOARD_ANNOUNCEMENT_TEXT") ""}}
@@ -90,33 +90,6 @@
9090
{{/ifneq}}
9191
{{/hasConfig}}
9292
{{/hasConfig}}
93-
--}}
94-
95-
{{#hasConfig "DASHBOARD_ANNOUNCEMENT_ROLES"}}
96-
{{#ifneq (getConfig "DASHBOARD_ANNOUNCEMENT_ROLES") ""}}
97-
{{#if (userHasRoleFromArray (getConfig "DASHBOARD_ANNOUNCEMENT_ROLES") ../currentUser)}}
98-
<div style="position: relative; display: flex; padding: 16px; margin-bottom: 0; margin-top: 48px; border-radius: 4px; font-family: Roboto, sans-serif; font-size: 14px; line-height: 1.5; background-color: rgb(227, 242, 253); color: rgb(1, 87, 155);" role="alert">
99-
<div style="display: flex; align-items: flex-start; padding-right: 16px; flex-shrink: 0;">
100-
<svg style="width: 24px; height: 24px; fill: currentColor;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true">
101-
<path d="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"></path>
102-
</svg>
103-
</div>
104-
<div style="flex: 1; align-self: center; font-family: 'PT Sans',serif">
105-
<div style="font-weight: 700; margin-bottom: 4px; font-size: 19px;">
106-
<span style="color: rgba(58,66,75);">{{{$t "dashboard.text.lernStoreBannerTitle"}}}</span>
107-
</div>
108-
<div style="color: rgba(58,66,75); font-size: 16px;">
109-
<ul style="margin-top: 4px; padding-left: 20px; margin-bottom: 0;">
110-
<li>{{{$t ../translateKeyInfoBanner}}}</li>
111-
<li>{{{$t "dashboard.text.lernStoreBannerItem1"}}}</li>
112-
</ul>
113-
</div>
114-
</div>
115-
</div>
116-
{{/if}}
117-
{{/ifneq}}
118-
{{/hasConfig}}
119-
12093

12194
</section>
12295

0 commit comments

Comments
 (0)