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:
Simone Mainardi 2016-06-06 17:50:57 +02:00
parent 77f8ec43d6
commit c2767e37f5
4 changed files with 40 additions and 14 deletions

View file

@ -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