X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-maintenance-html.js;fp=src%2Ftemplate%2Fadmin-maintenance-html.js;h=f57a118b371d396d03c62c6e99c0881f1b786ad4;hp=031eb30c18527602aed4c9a30ae1897432997e39;hb=fba42a499fe1af051b0982c1f3e8b3873c9ed2fb;hpb=e8dccf76ec2776f07eddd1ce2f1c4fc150a6f790 diff --git a/src/template/admin-maintenance-html.js b/src/template/admin-maintenance-html.js index 031eb30..f57a118 100644 --- a/src/template/admin-maintenance-html.js +++ b/src/template/admin-maintenance-html.js @@ -1,6 +1,7 @@ 'use strict'; const th = require('./template-helper'); +const { sessionNavLinks } = require('@squeep/authentication-module'); function renderAlmanacRow(entry) { const { event, date } = entry; @@ -63,24 +64,18 @@ ${Object.entries(chores).map((chore) => renderChoreRow(...chore)).join('\n')} * @returns {String} */ module.exports = (ctx, options) => { + const pagePathLevel = 1; const htmlOptions = { + pageIdentifier: 'maintenance', pageTitle: options.manager.pageTitle + ' - Maintenance', logoUrl: options.manager.logoUrl, footerEntries: options.manager.footerEntries, - navLinks: [ - { - text: 'Admin', - href: '.', - }, - { - text: 'Ticket', - href: './ticket', - }, - ], }; + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); const content = [ almanacSection(ctx.almanac || []), choresSection(ctx.chores || {}), ]; - return th.htmlPage(1, ctx, htmlOptions, content); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, content); }; \ No newline at end of file