mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
parent
e9d5181d7c
commit
e8e65ca63b
1 changed files with 3 additions and 4 deletions
|
|
@ -640,10 +640,9 @@ function printExternalAlertsReport()
|
|||
-- Channel settings
|
||||
print('<tr id="slack_channels" style="' .. ternary(showSlackNotificationPrefs, "", "display:none;").. '"><td><strong>' .. i18n("prefs.slack_channel_names") .. '</strong><p><small>' .. i18n("prefs.slack_channel_names_descr") .. '</small></p></td><td><table class="table table-bordered table-condensed"><tr><th>'.. i18n("prefs.alert_entity") ..'</th><th>' .. i18n("prefs.slack_channel") ..'</th></tr>')
|
||||
|
||||
for _, entity in ipairs(alert_consts.alert_entity_keys) do
|
||||
local label = entity[1]
|
||||
local entity_type = entity[2]
|
||||
local entity_type_raw = entity[3]
|
||||
for entity_type_raw, entity in pairsByKeys(alert_consts.alert_entities) do
|
||||
local entity_type = alertEntity(entity_type_raw)
|
||||
local label = alertEntityLabel(entity_type)
|
||||
local channel = slack_utils.getChannelName(entity_type_raw)
|
||||
|
||||
print('<tr><td>'.. label ..'</td><td><div class="form-group" style="margin:0"><input class="form-control input-sm" name="slack_ch_'.. entity_type ..'" pattern="[^\' \']*" value="'.. channel ..'"></div></td></tr>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue