Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2015-10-16 18:40:12 +0300
committerCasey Deccio <casey@deccio.net>2015-10-16 18:40:12 +0300
commit60b41b6fed9bf1940094654b00ef27e06c75958c (patch)
treec902d64983ce65bc53cceec050ff2ce873bb49ee /share
parentc569d34c4e9c6f3175a88cab250afa2efcdb72d7 (diff)
Include tags in output
Diffstat (limited to 'share')
-rw-r--r--share/js/dnsviz.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/share/js/dnsviz.js b/share/js/dnsviz.js
index 16cdf08..fe53ae9 100644
--- a/share/js/dnsviz.js
+++ b/share/js/dnsviz.js
@@ -97,9 +97,16 @@ AuthGraph.prototype.infoToHtmlTableComponents = function (obj) {
if (key.toLowerCase() in {'errors':null,'warnings':null}) {
s += '<ul>';
for (var i = 0; i < val.length; i++) {
+ var servers_tags = [];
s += '<li>' + val[i]['description'];
if (val[i]['servers'] != undefined) {
- s += ' (' + val[i]['servers'].join(", ") + ')';
+ servers_tags = servers_tags.concat(val[i]['servers']);
+ }
+ if (val[i]['tags'] != undefined) {
+ servers_tags = servers_tags.concat(val[i]['tags']);
+ }
+ if (servers_tags.length > 0) {
+ s += ' (' + servers_tags.join(", ") + ')';
}
s += '</li>';
}