X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-topic-details-html.js;h=0c281e48086ef4514ea75996ec62577b0823d66d;hb=3c547e314b79a31fb3f15412a47707a22dc3eefd;hp=df13f210f7af70c2686b3955ee3d744f4b2b43db;hpb=ed6dc5a66ce0eaf2dd61f9fb7a5ec048944c68ee;p=websub-hub
diff --git a/src/template/admin-topic-details-html.js b/src/template/admin-topic-details-html.js
index df13f21..0c281e4 100644
--- a/src/template/admin-topic-details-html.js
+++ b/src/template/admin-topic-details-html.js
@@ -14,7 +14,7 @@ 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: '..',
@@ -25,14 +25,23 @@ module.exports = (ctx, options) => {
if (!ctx.subscriptions) {
ctx.subscriptions = [];
}
- return th.htmlTemplate(2, pageTitle, headElements, navLinks, [
+
+ const htmlOptions = {
+ pageTitle,
+ logoUrl,
+ navLinks,
+ footerEntries,
+ };
+
+ const content = [
+ '', // This fixes a layout rendering flash on load in FF; do not know why this works but it does.
`
`,
th.renderTopicRowHeader(),
`
`,
- ...(ctx.topic && [ th.renderTopicRow(ctx.topic, ctx.subscriptions, false) ]),
+ ...(ctx.topic && [ th.renderTopicRow(ctx.topic, ctx.subscriptions, false) ] || []),
`
`,
@@ -47,5 +56,7 @@ module.exports = (ctx, options) => {
`
`,
- ], footerEntries);
+ ];
+
+ return th.htmlPage(2, htmlOptions, content);
};
\ No newline at end of file