X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Ftemplate-helper.js;h=e48cdb4fc5e59e17e5179b35a0339f357ba657be;hb=858b76483eabfc25b60f7bdf7ef4be97b61b5b41;hp=747c5258d571124e342cf9945a8b71d5b5d5728a;hpb=77f0fd50c8de53072f73052a01f69c6c6fc783f8;p=squeep-html-template-helper 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`, }); }