X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-topic-details-html.js;h=8a20ec7db96119bf64d2bfcc4f0204634b5c83b5;hb=17b4ff9c1974842c02071d2cd02144d2e5a99eb5;hp=448de09efdb369a346deff79cffbaa5f307c11c7;hpb=9696c012e6b9a6c58904baa397ca0ebf78112316;p=websub-hub diff --git a/src/template/admin-topic-details-html.js b/src/template/admin-topic-details-html.js index 448de09..8a20ec7 100644 --- a/src/template/admin-topic-details-html.js +++ b/src/template/admin-topic-details-html.js @@ -14,24 +14,33 @@ const th = require('./template-helper'); */ module.exports = (ctx, options) => { const pageTitle = `${options.manager.pageTitle} - Topic Details`; - const headElements = []; + const logoUrl = options.manager.logoUrl; const navLinks = [ { href: '..', text: '↑ All Topics', }, ]; + const footerEntries = options.manager.footerEntries; if (!ctx.subscriptions) { ctx.subscriptions = []; } - return th.htmlTemplate(2, pageTitle, headElements, navLinks, [ + + const htmlOptions = { + pageTitle, + logoUrl, + navLinks, + footerEntries, + }; + + const content = [ `
`, th.renderTopicRowHeader(), ` `, - ...(ctx.topic && [ th.renderTopicRow(ctx.topic, ctx.subscriptions, false) ]), + ...(ctx.topic && [ th.renderTopicRow(ctx.topic, ctx.subscriptions, false) ] || []), `
`, @@ -46,5 +55,7 @@ module.exports = (ctx, options) => { ` `, - ]); + ]; + + return th.htmlPage(2, ctx, htmlOptions, content); }; \ No newline at end of file