From 913f9f70f6f1609652e456de3cb43b493c700e24 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 26 Apr 2015 11:52:21 +0200 Subject: [PATCH] remove contact info from simplenodelist --- lib/gui.js | 4 ++-- lib/simplenodelist.js | 5 +---- scss/main.scss | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/gui.js b/lib/gui.js index 720c49e..e3d64fc 100644 --- a/lib/gui.js +++ b/lib/gui.js @@ -70,8 +70,8 @@ function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist, var tabs = new Tabs() var overview = new Container() var meshstats = new Meshstats() - var newnodeslist = new SimpleNodelist(config, "new", "firstseen", router, "Neue Knoten") - var lostnodeslist = new SimpleNodelist(config, "lost", "lastseen", router, "Verschwundene Knoten") + var newnodeslist = new SimpleNodelist("new", "firstseen", router, "Neue Knoten") + var lostnodeslist = new SimpleNodelist("lost", "lastseen", router, "Verschwundene Knoten") var nodelist = new Nodelist(router) var linklist = new Linklist(linkScale, router) var statistics = new Proportions() diff --git a/lib/simplenodelist.js b/lib/simplenodelist.js index 972bc6c..3a7e548 100644 --- a/lib/simplenodelist.js +++ b/lib/simplenodelist.js @@ -1,5 +1,5 @@ define(["moment", "virtual-dom"], function (moment, V) { - return function(config, nodes, field, router, title) { + return function(nodes, field, router, title) { var self = this var el, tbody @@ -47,9 +47,6 @@ define(["moment", "virtual-dom"], function (moment, V) { if (has_location(d)) td1Content.push(V.h("span", {className: "icon ion-location"})) - if ("owner" in d.nodeinfo && config.showContact) - td1Content.push(" - " + d.nodeinfo.owner.contact) - var td1 = V.h("td", td1Content) var td2 = V.h("td", time) diff --git a/scss/main.scss b/scss/main.scss index 59c0bec..edaeef9 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -282,6 +282,7 @@ table { .sidebar td:not(:first-child), .sidebar th:not(:first-child) { text-align: right; + white-space: nowrap; } .sidebar a {