X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;h=575d4bcbdf439c0287f1bc565e15fb4d10834ab0;hb=3ca7fccb306d0b23626befc3791ffa360b3db1e7;hp=d035bb8c342da6ca94b3f93fd4f25cfcb1398a4d;hpb=1c37a7c533a5530390489ea9a49dcca492db1074;p=websub-hub diff --git a/src/template/root-html.js b/src/template/root-html.js index d035bb8..575d4bc 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'); /** * @@ -164,26 +165,26 @@ ${contactHTML} * @returns {string} html */ module.exports = (ctx, options) => { + const pagePathLevel = 0; const pageTitle = options.manager.pageTitle; const isPublicHub = options.manager.publicHub; const contactHTML = options.adminContactHTML; const footerEntries = options.manager.footerEntries; const hubURL = options.dingus.selfBaseUrl || 'https://hub.example.com/'; - const navLinks = [{ - href: 'admin/', - text: 'Admin', - }]; const htmlOptions = { + pageIdentifier: 'root', pageTitle, logoUrl: options.manager.logoUrl, footerEntries, - navLinks, + navLinks: [], }; + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); const content = [ aboutSection(), usageSection(isPublicHub, hubURL), contactSection(contactHTML), hAppSection(pageTitle, options.manager.logoUrl), ]; - return th.htmlPage(0, ctx, htmlOptions, content); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, content); }; \ No newline at end of file