From 0bc6298cc05de35edb50b40b31bf1db84580abd9 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 12 Mar 2016 10:15:56 -0500 Subject: [PATCH] update mod ui to have more details --- contrib/static/mod.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 0da1026..f32dab2 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -146,6 +146,7 @@ function createConnectionElement(j) { var e = document.createElement("div"); e.setAttribute("class", "connection"); var auth = document.createElement("span"); + auth.appendChild(document.createTextNode("Connection: ")); // authentication state if (j.authed) { auth.setAttribute("class", "authed"); @@ -157,14 +158,15 @@ function createConnectionElement(j) { // connection mode var mode = document.createElement("span"); - mode.appendChild(document.createTextNode("mode")); - mode.appendChild(document.createTextNode(j.mode)); + mode.setAttribute("class", "mode"); + mode.appendChild(document.createTextNode("mode: "+j.mode)); e.appendChild(mode); var pending = document.createElement("div"); pending.setAttribute("class", "pending"); // pending articles var articles = Object.keys(j.pending); + pending.appendChild(document.createTextNode("pending articles: "+articles.length)); for ( var idx = 0 ; idx < articles.length; idx ++ ) { var msgid = articles[idx]; var state = j.pending[msgid];