display history of topic updates on topic details page
[websub-hub] / src / template / admin-topic-details-html.js
index 2b9a1af7fb44400768ffa9e416084651a034c525..abf441adfe8178d5d2a1104e0b848791fc023c16 100644 (file)
@@ -34,7 +34,6 @@ module.exports = (ctx, options) => {
   };
 
   const content = [
-    '<script>0</script>', // This fixes a layout rendering flash on load in FF; do not know why this works but it does.
     `      <section class="topics">
         <table>
           <thead>`,
@@ -45,6 +44,10 @@ module.exports = (ctx, options) => {
     `        </tbody>
         </table>
       </section>`,
+    `      <section class="history">
+        <p>Topic Publish History &mdash; ${ctx.publishCount} updates in the last ${ctx.publishSpan} days</p>
+        <img title="Topic Publish History" src="${ctx.params.topicId}/history.svg">
+      </section>`,
     `      <section class="subscriptions">
         <p>${ctx.subscriptions.length ? ctx.subscriptions.length : 'no'} subscription${(ctx.subscriptions.length === 1) ? '' : 's'}</p>
         <table>