mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
updated datatable button style (#4501)
This commit is contained in:
parent
abf30f74bc
commit
3a90817f1d
7 changed files with 12 additions and 12 deletions
|
|
@ -111,7 +111,7 @@ for _key,_value in ipairs(alerts) do
|
|||
|
||||
if engaged == true then
|
||||
column_duration = secondsToTime(os.time() - tonumber(_value["alert_tstamp"]))
|
||||
elseif tonumber(_value["alert_tstamp_end"]) ~= nil
|
||||
elseif tonumber(_value["alert_tstamp_end"]) ~= nil
|
||||
and (tonumber(_value["alert_tstamp_end"]) - tonumber(_value["alert_tstamp"])) ~= 0 then
|
||||
column_duration = secondsToTime(tonumber(_value["alert_tstamp_end"]) - tonumber(_value["alert_tstamp"]))
|
||||
end
|
||||
|
|
@ -130,7 +130,7 @@ for _key,_value in ipairs(alerts) do
|
|||
if graph_utils.getAlertGraphLink then
|
||||
column_chart = graph_utils.getAlertGraphLink(getInterfaceId(ifname), _value, alert_info, engaged)
|
||||
if not isEmptyString(column_chart) then
|
||||
column_chart = "<a href='".. column_chart .."'><i class='fas fa-search-plus drilldown-icon'></i></a>"
|
||||
column_chart = "<a class='btn btn-sm btn-info' href='".. column_chart .."'><i class='fas fa-search-plus drilldown-icon'></i></a>"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -163,7 +163,7 @@ for _key,_value in ipairs(alerts) do
|
|||
record["column_chart"] = column_chart
|
||||
|
||||
res_formatted[#res_formatted + 1] = record
|
||||
|
||||
|
||||
end -- for
|
||||
|
||||
local result = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue