mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Conditional UI layout
Different information and messages are shown depending on the kind of interface. For example, low goodput flows are hidden when processing a non-packet interface.
This commit is contained in:
parent
77f8ec43d6
commit
c2767e37f5
4 changed files with 40 additions and 14 deletions
|
|
@ -439,7 +439,7 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
-- if(value["category"] ~= nil) then print (", \"column_category\" : \"" .. value["category"] .. "\", ") else print (",") end
|
||||
print (", \"column_proto_l4\" : \"")
|
||||
|
||||
if(value["flow.status"] ~= 0) then
|
||||
if(interface.isPacketInterface() and value["flow.status"] ~= 0) then
|
||||
print("<i class='fa fa-warning fa-lg' style='color: orange;'></i> ")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue