X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-overview-html.js;h=948bdbb0083fa77917a7f5b96dc61eb94557be92;hb=3ca7fccb306d0b23626befc3791ffa360b3db1e7;hp=fd0261f53c85618eb6310e1fdd53bf2115bacb27;hpb=1c37a7c533a5530390489ea9a49dcca492db1074;p=websub-hub diff --git a/src/template/admin-overview-html.js b/src/template/admin-overview-html.js index fd0261f..948bdbb 100644 --- a/src/template/admin-overview-html.js +++ b/src/template/admin-overview-html.js @@ -1,6 +1,7 @@ 'use strict'; const th = require('./template-helper'); +const { sessionNavLinks } = require('@squeep/authentication-module'); /** * Show a summary of all topics. @@ -12,6 +13,7 @@ const th = require('./template-helper'); * @returns {string} html */ module.exports = (ctx, options) => { + const pagePathLevel = 1; const pageTitle = `${options.manager.pageTitle} - Topics`; const logoUrl = options.manager.logoUrl; const footerEntries = options.manager.footerEntries; @@ -20,10 +22,13 @@ module.exports = (ctx, options) => { } const htmlOptions = { + pageIdentifier: 'admin', pageTitle, logoUrl, footerEntries, }; + th.navLinks(pagePathLevel, ctx, htmlOptions); + sessionNavLinks(pagePathLevel, ctx, htmlOptions); const content = [ `
@@ -39,5 +44,5 @@ module.exports = (ctx, options) => {
`, ]; - return th.htmlPage(1, ctx, htmlOptions, content); + return th.htmlPage(pagePathLevel, ctx, htmlOptions, content); }; \ No newline at end of file