mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
modify homeNotice API to allow translations without a circular dependency
This commit is contained in:
parent
1d291a04a9
commit
171d19baee
@ -121,8 +121,14 @@ define([
|
||||
];
|
||||
|
||||
var notice;
|
||||
/* Admins can specify a notice to display in application_config.js via the `homeNotice` attribute.
|
||||
If the text is the key for the translation system then then the most appropriate translated text
|
||||
will be displayed. Otherwise, the direct text will be included as HTML.
|
||||
*/
|
||||
if (AppConfig.homeNotice) {
|
||||
notice = h('div.alert.alert-info', Pages.setHTML(h('span'), AppConfig.homeNotice));
|
||||
notice = h('div.alert.alert-info', Pages.setHTML(h('span'), [
|
||||
Msg[AppConfig.homeNotice] || AppConfig.homeNotice
|
||||
]));
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user