easier configuration of translated instance descriptions on the home page

pull/1/head
ansuz 3 years ago
parent abb30f5ba5
commit 0d1bfdc02b

@ -132,6 +132,8 @@ define([
customURLs[k] = value[l] || value['default']; customURLs[k] = value[l] || value['default'];
} }
}); });
var value = AppConfig.hostDescription;
Pages.hostDescription = (value && (value[l] || value.default)) || Msg.home_host;
}()); }());
// used for the about menu // used for the about menu

@ -122,7 +122,7 @@ define([
h('div.row.cp-page-section', h('div.row.cp-page-section',
h('div.col-sm-12', [ h('div.col-sm-12', [
h('h2', Msg.home_host_title), h('h2', Msg.home_host_title),
h('p'), Msg.home_host h('p', Pages.hostDescription),
]) ])
), ),
h('div.row.cp-page-section', [ h('div.row.cp-page-section', [

Loading…
Cancel
Save