Skip to content
Snippets Groups Projects
Unverified Commit aeb849ac authored by Xaver Maierhofer's avatar Xaver Maierhofer
Browse files

[TASK] Add nodes as title and link to link-infobox

parent 3dc4d100
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,19 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'helper', 'utils/node'], ...@@ -70,7 +70,19 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'helper', 'utils/node'],
V.h('td', icons), V.h('td', icons),
V.h('td', nodeLink(n.node)), V.h('td', nodeLink(n.node)),
V.h('td', n.node.clients), V.h('td', n.node.clients),
V.h('td', { style: { color: linkScale((n.link.source_tq + n.link.target_tq) / 2) } }, helper.showTq(n.link.source_tq) + ' - ' + helper.showTq(n.link.target_tq)), V.h('td', [V.h('a', {
style: {
color: linkScale((n.link.source_tq + n.link.target_tq) / 2)
},
props: {
title: n.link.source.hostname + ' - ' + n.link.target.hostname,
href: router.generateLink({ link: n.link.id })
}, on: {
click: function (e) {
router.fullUrl({ link: n.link.id }, e);
}
}
}, helper.showTq(n.link.source_tq) + ' - ' + helper.showTq(n.link.target_tq))]),
V.h('td', helper.showDistance(n.link)) V.h('td', helper.showDistance(n.link))
]); ]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment