X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=blobdiff_plain;f=lib%2Ftemplate-helper.js;fp=lib%2Ftemplate-helper.js;h=e48cdb4fc5e59e17e5179b35a0339f357ba657be;hp=747c5258d571124e342cf9945a8b71d5b5d5728a;hb=eb018a6fe29fc8c13841c94e894e5aff192ea73f;hpb=891cdb3080388b8a0a304946c34af583e2fbfa79
diff --git a/lib/template-helper.js b/lib/template-helper.js
index 747c525..e48cdb4 100644
--- a/lib/template-helper.js
+++ b/lib/template-helper.js
@@ -390,11 +390,11 @@ function htmlPage(pagePathLevel, ctx, options, main = []) {
const logoutRedirect = ctx?.url ? `?r=${encodeURIComponent(ctx.url)}` : '';
const adminPath = (pagePathLevel > 0) ? `${'../'.repeat(pagePathLevel - 1)}` : 'admin/';
options.navLinks.push({
+ text: 'Account',
+ href: `${adminPath}settings`,
+ }, {
text: `Logout (${user})`,
href: `${adminPath}logout${logoutRedirect}`,
- }, {
- text: 'Settings',
- href: `${adminPath}settings`,
});
}