X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-topic-details-html.js;h=1d0add005079f356545eae03db8448548af61134;hb=ec37364b49c6a7e148e50584d3a83c424f4a8f87;hp=0c281e48086ef4514ea75996ec62577b0823d66d;hpb=3c547e314b79a31fb3f15412a47707a22dc3eefd;p=websub-hub diff --git a/src/template/admin-topic-details-html.js b/src/template/admin-topic-details-html.js index 0c281e4..1d0add0 100644 --- a/src/template/admin-topic-details-html.js +++ b/src/template/admin-topic-details-html.js @@ -34,7 +34,6 @@ module.exports = (ctx, options) => { }; const content = [ - '', // This fixes a layout rendering flash on load in FF; do not know why this works but it does. `
`, @@ -45,9 +44,20 @@ module.exports = (ctx, options) => { `
`, + `
+

Topic Publish History — ${ctx.publishCount} updates in the last ${ctx.publishSpan} days

+ +
`, `
-

${ctx.subscriptions.length ? ctx.subscriptions.length : 'no'} subscription${(ctx.subscriptions.length === 1) ? '' : 's'}

- +

${ctx.subscriptions.length ? ctx.subscriptions.length : 'no'} subscription${(ctx.subscriptions.length === 1) ? '' : 's'}

`, + ...(ctx.subscriptions.length && [` + + + ${ctx.subscriptionsDelivered} of ${ctx.subscriptions.length} (${Math.ceil(100 * ctx.subscriptions.length / ctx.subscriptionsDelivered)}%) + `] || []), + `
`, th.renderSubscriptionRowHeader(), ` @@ -58,5 +68,5 @@ module.exports = (ctx, options) => { `, ]; - return th.htmlPage(2, htmlOptions, content); + return th.htmlPage(2, ctx, htmlOptions, content); }; \ No newline at end of file