X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-overview-html.js;h=525337dc5ad6e76b3591d6d6297717009cc0d1e4;hb=3bc885c4b6ef8e5ced2ee9708194523a41ebfe7a;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..525337d 100644 --- a/src/template/admin-overview-html.js +++ b/src/template/admin-overview-html.js @@ -13,12 +13,20 @@ 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 = [ + '', // This fixes a layout rendering flash on load in FF; do not know why this works but it does. `

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

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