[TASK] Add nodes as title and link to link-infobox
This commit is contained in:
parent
3dc4d10082
commit
aeb849aca8
@ -70,7 +70,19 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'helper', 'utils/node'],
|
||||
V.h('td', icons),
|
||||
V.h('td', nodeLink(n.node)),
|
||||
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))
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user