X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Fadmin-topic-details-html.js;h=1d0add005079f356545eae03db8448548af61134;hb=ec37364b49c6a7e148e50584d3a83c424f4a8f87;hp=2b9a1af7fb44400768ffa9e416084651a034c525;hpb=f2b962998eac906e87b4a83337fd9e3dc96eb59c;p=websub-hub diff --git a/src/template/admin-topic-details-html.js b/src/template/admin-topic-details-html.js index 2b9a1af..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(), `