X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-html.js;fp=src%2Ftemplate%2Fadmin-html.js;h=4fee8e74298e9de7fc22713f700060f1f87d2a9d;hp=a6a83a0629f3219fc4b7f2ea59965966494f3e33;hb=fba42a499fe1af051b0982c1f3e8b3873c9ed2fb;hpb=e8dccf76ec2776f07eddd1ce2f1c4fc150a6f790 diff --git a/src/template/admin-html.js b/src/template/admin-html.js index a6a83a0..4fee8e7 100644 --- a/src/template/admin-html.js +++ b/src/template/admin-html.js @@ -7,6 +7,7 @@ */ const th = require('./template-helper'); +const { sessionNavLinks } = require('@squeep/authentication-module'); function renderProfileLI(profile) { @@ -196,17 +197,15 @@ ${tokenTable(ctx.tokens)} * @returns {String} */ module.exports = (ctx, options) => { + const pagePathLevel = 1; const htmlOptions = { - pageTitle: options.manager.pageTitle, + pageIdentifier: 'admin', + pageTitle: options.manager.pageTitle + ' - Admin', logoUrl: options.manager.logoUrl, footerEntries: options.manager.footerEntries, - navLinks: [ - { - text: 'Ticket', - href: 'ticket', - }, - ], }; + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(1, ctx, htmlOptions); const content = [ mainContent(ctx), ];