Skip to content

Commit

Permalink
BC-7700 BC-7701 BC-7702 - replacing LC links on platform (#3499)
Browse files Browse the repository at this point in the history
* adding TRAINING_URL env var for different state training locations

* adjusting accessibility report email for dBc
  • Loading branch information
MartinSchuhmacher authored Aug 6, 2024
1 parent 38877ed commit 90d0106
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
7 changes: 6 additions & 1 deletion config/default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,14 @@
},
"ACCESSIBILITY_REPORT_EMAIL": {
"type": "string",
"default": "lernen.cloud@dataport.de",
"default": "dbildungscloud@dataport.de",
"description": "Email to report accessibility issue"
},
"TRAINING_URL": {
"type": "string",
"default": "https://lernen.dbildungscloud.de",
"description": "URL for the platform training material"
},
"I18N": {
"type": "object",
"description": "Configuration of I18N",
Expand Down
3 changes: 2 additions & 1 deletion helpers/handlebars/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ module.exports = (req, res, next) => {
});
}
// helpArea view
const trainingUrl = Configuration.get('TRAINING_URL');
res.locals.sidebarItems.push({
name: res.$t('global.link.helpArea'),
testId: 'Hilfebereich',
Expand All @@ -378,7 +379,7 @@ module.exports = (req, res, next) => {
name: res.$t('lib.help_menu.link.training'),
testId: 'Fortbildungen',
icon: 'file-certificate-outline',
link: 'https://lernen.cloud/',
link: trainingUrl,
isExternalLink: true,
},
],
Expand Down
2 changes: 1 addition & 1 deletion theme/thr/views/about/about.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
zusammen mit der <a
href="https://www.philso.uni-augsburg.de/lehrstuehle/schulpaed/Projekte/Digitalisierung/Lernen-4_0-in-der-Praxis/"
target="_blank">Universität Augsburg</a>
einen MOOC zu dem Thema <a href="https://lernen.cloud/" target="_blank">Lernen 4.0 -
einen MOOC zu dem Thema <a href="{{getConfig "TRAINING_URL"}}" target="_blank">Lernen 4.0 -
Möglichkeiten und Grenzen einer Digitalisierung im Bildungsbereich</a> durchgeführt.</p>
<br />
<div class="embed-pdf">
Expand Down
6 changes: 3 additions & 3 deletions views/community/community.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div id="collapseBrb" class="collapse" aria-labelledby="brbAccordion" data-parent="#accordionRegistration">
<div class="card-body p-1">
{{$t "community.text.inBrandenburgTheAdmissionOfNewSchools"}}<br>
{{$t "community.text.forGeneralQuestionsPleaseContact"}}<br>
{{$t "community.text.forGeneralQuestionsPleaseContact"}}<br>
<a href="mailto:schul-cloud@bildungsserver.berlin-brandenburg.de">schul-cloud@bildungsserver.berlin-brandenburg.de</a>
</div>
</div>
Expand Down Expand Up @@ -84,8 +84,8 @@
</div>

<p class="mt-3">
{{$t "community.text.youCanGetSupport"}} <a href="https://lernen.cloud/"
target="_blank">https://lernen.cloud</a>.
{{$t "community.text.youCanGetSupport"}} <a href="{{getConfig "TRAINING_URL"}}"
target="_blank">{{{getConfig "TRAINING_URL"}}}</a>.
</p>
{{/content}}
{{/embed}}
Expand Down
4 changes: 2 additions & 2 deletions views/firstLogin/components/welcome_greeting.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{{$t "firstLogin.thanks.text.youAreAdminAndHaveTheHonorable" (dict "title" @root.theme.title)}} <b>{{$t "firstLogin.thanks.img_alt.onlineTraining"}}</b> {{$t "firstLogin.thanks.text.andLearnEverythingYouNeed"}}
</p>
<div class="text-xs-center text-sm-right">
<a class="btn btn-warning" target="_blank" rel="noopener noreferrer" href="https://lernen.cloud/">{{$t "firstLogin.text.clickHereForFurtherTraining" }}</a>
<a class="btn btn-warning" target="_blank" rel="noopener noreferrer" href="{{getConfig "TRAINING_URL"}}">{{$t "firstLogin.text.clickHereForFurtherTraining" }}</a>
</div>
</div>
</div>
Expand All @@ -39,7 +39,7 @@
{{$t "firstLogin.thanks.text.whatCanActuallyDo" (dict "shortTitle" @root.theme.short_title)}} <b>{{$t "firstLogin.thanks.img_alt.onlineTraining"}}</b> {{$t "firstLogin.thanks.text.forVividAndPracticalVideos"}}
</p>
<div class="text-xs-center text-sm-right">
<a class="btn btn-warning" target="_blank" rel="noopener noreferrer" href="https://lernen.cloud/">{{$t "firstLogin.text.clickHereForFurtherTraining" }}</a>
<a class="btn btn-warning" target="_blank" rel="noopener noreferrer" href="{{getConfig "TRAINING_URL"}}">{{$t "firstLogin.text.clickHereForFurtherTraining" }}</a>
</div>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions views/help/partials/help_nutzungshilfen.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{#if (userHasRole "student" )}}
{{#embed "help/icon-card" title="Nutzungshilfen" icon="fa-map-signs" class="quickHelp-card col-xs-12 help-icon-card" id="nutzungshilfen"}}
{{#content "card-body"}}
{{> "help/icon-link-group" links=(jsonParse '[
{{> "help/icon-link-group" links=(jsonParse (concat '[
{
"title": "Online-Videokurse",
"icon": "fa-video-camera",
"src": "https://lernen.cloud/"
"src": "' (getConfig "TRAINING_URL") '"
},
{
"title": "Live-Formate",
Expand All @@ -22,17 +22,17 @@
"icon": "fa-clipboard",
"src": "/system/releases"
}
]') link-class="col-sm-4"}}
]')) link-class="col-sm-4"}}
{{/content}}
{{/embed}}
{{else}}
{{#embed "help/icon-card" title="Nutzungshilfen" icon="fa-map-signs" class="quickHelp-card col-xs-12 help-icon-card" id="nutzungshilfen"}}
{{#content "card-body"}}
{{> "help/icon-link-group" links=(jsonParse '[
{{> "help/icon-link-group" links=(jsonParse (concat '[
{
"title": "Online-Videokurse",
"icon": "fa-video-camera",
"src": "https://lernen.cloud/"
"src": "' (getConfig "TRAINING_URL") '"
},
{
"title": "Live-Formate",
Expand All @@ -54,7 +54,7 @@
"icon": "fa-clipboard",
"src": "/system/releases"
}
]') link-class="col-sm-4"}}
]')) link-class="col-sm-4"}}
{{/content}}
{{/embed}}
{{/if}}
2 changes: 1 addition & 1 deletion views/lib/help_menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
></path></svg>

<a
href="https://lernen.cloud/"
href="{{getConfig "TRAINING_URL"}}"
target="_blank"
class="link"
data-testid="Fortbildung"
Expand Down

0 comments on commit 90d0106

Please sign in to comment.