make non-admin section better formatted

Co-authored-by: George Gevoian <85144792+georgegevoian@users.noreply.github.com>
This commit is contained in:
Paul Fitzpatrick 2024-05-16 14:00:24 -04:00
parent 67e8ac4779
commit 9a7fe249e0
No known key found for this signature in database
GPG Key ID: 07F16BF3214888F6

View File

@ -99,12 +99,9 @@ export class AdminPanel extends Disposable {
*/
private _buildMainContentForOthers(owner: MultiHolder) {
return dom.create(AdminSection, t('Administrator Panel Unavailable'), [
dom('p', `You do not have access to the administrator panel.
Please log in as an administrator.`),
dom('p', `Or, as a fallback, you can set:`),
dom('pre', 'GRIST_BOOT_KEY=secret'),
dom('p', ` in the environment and visit: `),
dom('pre', `/admin?key=secret`)
dom('p', t(`You do not have access to the administrator panel.
Please log in as an administrator.`)),
dom('p', t(`Or, as a fallback, you can set: {{bootKey}} in the environment and visit: {{url}}`), {bootKey: dom('pre', 'GRIST_BOOT_KEY=secret'), url: dom('pre', `/admin?key=secret`)}),
]);
}