mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Standardizes naming conventions in historical data
This commit is contained in:
parent
eda4e7f1a7
commit
3398097c93
1 changed files with 8 additions and 8 deletions
|
|
@ -161,7 +161,7 @@ var refreshBreadCrumbInterface = function(){
|
|||
var refreshBreadCrumbHost = function(host){
|
||||
emptyBreadCrumb();
|
||||
$("#bc-talkers").append('<li><a onclick="populateInterfaceTopTalkersTable();">Interface ]] print(getInterfaceName(ifid)) print [[</a></li>');
|
||||
$("#bc-talkers").append('<li>Talkers with host ' + host + ' </li>');
|
||||
$("#bc-talkers").append('<li>Talkers with ' + host + ' </li>');
|
||||
$('#historical-container').attr("host", host);
|
||||
$('#historical-container').removeAttr("peer");
|
||||
}
|
||||
|
|
@ -169,7 +169,7 @@ var refreshBreadCrumbHost = function(host){
|
|||
var refreshBreadCrumbPairs = function(peer1, peer2){
|
||||
emptyBreadCrumb();
|
||||
$("#bc-talkers").append('<li><a onclick="populateInterfaceTopTalkersTable();">Interface ]] print(getInterfaceName(ifid)) print [[</a></li>');
|
||||
$("#bc-talkers").append('<li><a onclick="populateHostTopTalkersTable(\'' + peer1 + '\');">Talkers with host ' + peer1 + '</a></li>');
|
||||
$("#bc-talkers").append('<li><a onclick="populateHostTopTalkersTable(\'' + peer1 + '\');">Talkers with ' + peer1 + '</a></li>');
|
||||
$("#bc-talkers").append('<li>Applications between ' + peer1 + ' and ' + peer2 + ' </li>');
|
||||
$('#historical-container').attr("peer", peer2);
|
||||
}
|
||||
|
|
@ -197,7 +197,7 @@ var populateInterfaceTopTalkersTable = function(){
|
|||
var addr_td = $("td:eq(0)", row[0]);
|
||||
var label_td = $("td:eq(1)", row[0]);
|
||||
var addr = addr_td.text();
|
||||
label_td.append(' <a onclick="populateHostTopTalkersTable(\'' + addr +'\');"><i class="fa fa-pie-chart" title="Get Talkers with this host"></i></a>');
|
||||
label_td.append(' <a onclick="populateHostTopTalkersTable(\'' + addr +'\');"><i class="fa fa-pie-chart" title="Talkers with this host"></i></a>');
|
||||
return row;
|
||||
},
|
||||
columns:
|
||||
|
|
@ -372,12 +372,12 @@ var refreshHostPeersByAppBreadCrumb = function(peer1, proto_id){
|
|||
var app = $('#historical-interface-top-apps-table').attr("proto");
|
||||
if (root === "interface"){
|
||||
$("#bc-apps").append('<li><a onclick="populateInterfaceTopAppsTable();">Interface ]] print(getInterfaceName(ifid)) print [[</a></li>');
|
||||
$("#bc-apps").append('<li><a onclick="populateAppTopTalkersTable(\'' + proto_id + '\');">Talkers speaking ' + app + '</a></li>');
|
||||
$("#bc-apps").append('<li>Talkers speaking ' + app + ' with ' + peer1 + ' </li>');
|
||||
$("#bc-apps").append('<li><a onclick="populateAppTopTalkersTable(\'' + proto_id + '\');">' + app + ' talkers</a></li>');
|
||||
$("#bc-apps").append('<li> ' + app + ' talkers with ' + peer1 + ' </li>');
|
||||
} else if (root == "host"){
|
||||
var host = $('#historical-interface-top-apps-table').attr("host");
|
||||
$("#bc-apps").append('<li><a onclick="populateHostTopAppsTable(host);">Protocols spoken by ' + peer1 + '</a></li>');
|
||||
$("#bc-apps").append('<li>Talkers speaking ' + app + ' with ' + peer1 + ' </li>');
|
||||
$("#bc-apps").append('<li> ' + app + ' talkers with ' + peer1 + ' </li>');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -428,7 +428,7 @@ var populateAppTopTalkersTable = function(proto_id){
|
|||
emptyAppsBreadCrumb();
|
||||
var app = $('#historical-interface-top-apps-table').attr("proto");
|
||||
$("#bc-apps").append('<li><a onclick="populateInterfaceTopAppsTable();">Interface ]] print(getInterfaceName(ifid)) print [[</a></li>');
|
||||
$("#bc-apps").append('<li>Talkers speaking ' + app + ' </li>');
|
||||
$("#bc-apps").append('<li> ' + app + ' talkers</li>');
|
||||
|
||||
var div_id = 'app-' + proto_id;
|
||||
if ($('#'+div_id).length == 0) // create the div only if it does not exist
|
||||
|
|
@ -458,7 +458,7 @@ var populateAppTopTalkersTable = function(proto_id){
|
|||
var addr_td = $("td:eq(0)", row[0]);
|
||||
var label_td = $("td:eq(1)", row[0]);
|
||||
var addr = addr_td.text();
|
||||
label_td.append(' <a onclick="populatePeersPerHostByApplication(\'' + addr +'\',\'' + proto_id +'\');"><i class="fa fa-exchange" title="Hosts talking ' + proto_id + ' with ' + addr + '"></i></a>');
|
||||
label_td.append(' <a onclick="populatePeersPerHostByApplication(\'' + addr +'\',\'' + proto_id +'\');"><i class="fa fa-exchange" title="' + app + ' talkers with ' + addr + '"></i></a>');
|
||||
return row;
|
||||
},
|
||||
columns:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue