X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-overview-html.js;h=1ec3d110275d2197f20f9a239a6a4776922b84b6;hb=17b4ff9c1974842c02071d2cd02144d2e5a99eb5;hp=a8efef3bb5c7d77cbe9cdd070e0a645008297414;hpb=afc5da271215282fa723e79a12562d3b86734326;p=websub-hub diff --git a/src/template/admin-overview-html.js b/src/template/admin-overview-html.js index a8efef3..1ec3d11 100644 --- a/src/template/admin-overview-html.js +++ b/src/template/admin-overview-html.js @@ -13,13 +13,19 @@ const th = require('./template-helper'); */ module.exports = (ctx, options) => { const pageTitle = `${options.manager.pageTitle} - Topics`; - const headElements = []; - const navLinks = []; + const logoUrl = options.manager.logoUrl; const footerEntries = options.manager.footerEntries; if (!ctx.topics) { ctx.topics = []; } - return th.htmlTemplate(ctx, 1, pageTitle, headElements, navLinks, [ + + const htmlOptions = { + pageTitle, + logoUrl, + footerEntries, + }; + + const content = [ `

${ctx.topics.length ? ctx.topics.length : 'no'} topic${(ctx.topics.length === 1) ? '' : 's'}

@@ -31,5 +37,7 @@ module.exports = (ctx, options) => { `
`, - ], footerEntries); + ]; + + return th.htmlPage(1, ctx, htmlOptions, content); }; \ No newline at end of file