X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-overview-html.js;h=1ec3d110275d2197f20f9a239a6a4776922b84b6;hb=17b4ff9c1974842c02071d2cd02144d2e5a99eb5;hp=b86f7af600e741e25805a89923f2a898d1127161;hpb=9696c012e6b9a6c58904baa397ca0ebf78112316;p=websub-hub diff --git a/src/template/admin-overview-html.js b/src/template/admin-overview-html.js index b86f7af..1ec3d11 100644 --- a/src/template/admin-overview-html.js +++ b/src/template/admin-overview-html.js @@ -13,12 +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(1, pageTitle, headElements, navLinks, [ + + const htmlOptions = { + pageTitle, + logoUrl, + footerEntries, + }; + + const content = [ `

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

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