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