mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Added responsive to apexcharts
This commit is contained in:
parent
a0e8857f54
commit
77e811a415
5 changed files with 45 additions and 18 deletions
|
|
@ -29,7 +29,7 @@ if table.len(manufacturers) > 0 then
|
|||
if max_manufacturers >= 0 then
|
||||
max_manufacturers = max_manufacturers - 1
|
||||
rsp[#rsp + 1] = {
|
||||
label = shortenString(value.manufacturer, 22) .. " (" .. tostring(value.count) .. ")",
|
||||
label = value.manufacturer .. " (" .. tostring(value.count) .. ")",
|
||||
value = tonumber(value.count),
|
||||
url = ntop.getHttpPrefix() .. '/lua/assets.lua?page=details&manufacturer=' .. value.manufacturer
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,12 +27,11 @@ if table.len(tot_assets_overview) > 0 then
|
|||
local add_separator_below = false
|
||||
local key = nil
|
||||
if value == "online_asset" then
|
||||
key = 8
|
||||
add_separator_above = true
|
||||
key = 8
|
||||
text_color = "text-success"
|
||||
text_width = "6"
|
||||
elseif value == "offline_asset" then
|
||||
add_separator_above = true
|
||||
key = 9
|
||||
text_color = "text-secondary"
|
||||
text_width = "6"
|
||||
|
|
@ -54,11 +53,9 @@ if table.len(tot_assets_overview) > 0 then
|
|||
key = 5
|
||||
text_width = "4"
|
||||
elseif value == "pop_server" then
|
||||
add_separator_above = true
|
||||
key = 6
|
||||
text_width = "4"
|
||||
elseif value == "ntp_server" then
|
||||
add_separator_above = true
|
||||
key = 7
|
||||
text_width = "4"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue