mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Unifies alert_id and alert_key
This commit is contained in:
parent
64ceaa5b89
commit
1eb02b2c2b
9 changed files with 39 additions and 39 deletions
|
|
@ -28,15 +28,15 @@ print [[
|
|||
<div class="row">
|
||||
<div class="col col-md-4 offset-1">
|
||||
<table class="table table-bordered table-sm">
|
||||
<tr><th class='text-center'>]] print(i18n("plugins_overview.alert_id")) print[[</th><th>]] print(i18n("plugins_overview.alert_key")) print[[</th></tr>]]
|
||||
<tr><th class='text-center'>]] print(i18n("plugins_overview.alert_key")) print[[</th><th>]] print(i18n("plugins_overview.alert_key")) print[[</th></tr>]]
|
||||
|
||||
local id_start = 0
|
||||
local id_end = 63
|
||||
|
||||
for alert_id=id_start,id_end do
|
||||
local alert_key = alert_consts.getAlertType(alert_id) or "-"
|
||||
for alert_key=id_start,id_end do
|
||||
local alert_key = alert_consts.getAlertType(alert_key) or "-"
|
||||
|
||||
print[[<tr><td class='text-center'>]] print(string.format("%s", alert_id)) print[[</td>]]
|
||||
print[[<tr><td class='text-center'>]] print(string.format("%s", alert_key)) print[[</td>]]
|
||||
print[[<td>]] print(alert_key) print[[</td></tr>]]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue