X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;fp=src%2Ftemplate%2Froot-html.js;h=2b7abfe076173c5b5872b122530eedf7dabcd7ab;hp=1c3f4ebec70a547e9151cd08a1d93e9fbda48f2e;hb=fba42a499fe1af051b0982c1f3e8b3873c9ed2fb;hpb=e8dccf76ec2776f07eddd1ce2f1c4fc150a6f790 diff --git a/src/template/root-html.js b/src/template/root-html.js index 1c3f4eb..2b7abfe 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -1,6 +1,7 @@ 'use strict'; const th = require('./template-helper'); +const { sessionNavLinks } = require('@squeep/authentication-module'); function aboutSection() { return ` @@ -39,28 +40,22 @@ ${contactHTML} * @returns {String} */ module.exports = (ctx, options) => { + const pagePathLevel = 0; const contactHTML = options.adminContactHTML; const htmlOptions = { + pageIdentifier: 'root', pageTitle: options.manager.pageTitle, logoUrl: options.manager.logoUrl, footerEntries: options.manager.footerEntries, - navLinks: [ - { - text: 'Admin', - href: 'admin/', - }, - { - text: 'Ticket', - href: 'admin/ticket', - }, - ], headElements: [ ``, ], }; + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); const content = [ aboutSection(), contactSection(contactHTML), ]; - return th.htmlPage(1, ctx, htmlOptions, content); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, content); }; \ No newline at end of file