X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-ticket-html.js;fp=src%2Ftemplate%2Fadmin-ticket-html.js;h=37bba69b6bc2f9135aa5891fb86c17b1bc5885d8;hp=492c40d1dfc3d4fba87a0936cff1883359ed8cc1;hb=fba42a499fe1af051b0982c1f3e8b3873c9ed2fb;hpb=e8dccf76ec2776f07eddd1ce2f1c4fc150a6f790 diff --git a/src/template/admin-ticket-html.js b/src/template/admin-ticket-html.js index 492c40d..37bba69 100644 --- a/src/template/admin-ticket-html.js +++ b/src/template/admin-ticket-html.js @@ -5,6 +5,7 @@ */ const th = require('./template-helper'); +const { sessionNavLinks } = require('@squeep/authentication-module'); function renderProfileOption(profile) { @@ -79,20 +80,18 @@ ${scopesCheckboxRows} * @returns {String} */ module.exports = (ctx, options) => { + const pagePathLevel = 1; const htmlOptions = { + padeIdentifier: 'ticketProffer', pageTitle: options.manager.pageTitle + ' - Ticket Proffer', logoUrl: options.manager.logoUrl, footerEntries: options.manager.footerEntries, - navLinks: [ - { - text: 'Admin', - href: '../admin/', - }, - ], errorContent: ['Unable to send ticket.'], }; + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); const content = [ mainContent(ctx), ]; - return th.htmlPage(2, ctx, htmlOptions, content); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, content); }; \ No newline at end of file