luci-app-mwan3: fix strict XHTML syntax error
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
8d34bf94a6
commit
ed56422a91
3 changed files with 8 additions and 8 deletions
|
@ -8,37 +8,37 @@ dsp = require "luci.dispatcher"
|
|||
function interfaceWarnings(overview, count)
|
||||
local warnings = ""
|
||||
if count <= 250 then
|
||||
warnings = string.format("<strong>%s</strong></br>",
|
||||
warnings = string.format("<strong>%s</strong><br />",
|
||||
translatef("There are currently %d of 250 supported interfaces configured", count)
|
||||
)
|
||||
else
|
||||
warnings = string.format("<strong>%s</strong></br>",
|
||||
warnings = string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: %d interfaces are configured exceeding the maximum of 250!", count)
|
||||
)
|
||||
end
|
||||
|
||||
for i, k in pairs(overview) do
|
||||
if overview[i]["network"] == false then
|
||||
warnings = warnings .. string.format("<strong>%s</strong></br>",
|
||||
warnings = warnings .. string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: Interface %s are not found in /etc/config/network", i)
|
||||
)
|
||||
end
|
||||
|
||||
if overview[i]["default_route"] == false then
|
||||
warnings = warnings .. string.format("<strong>%s</strong></br>",
|
||||
warnings = warnings .. string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: Interface %s has no default route in the main routing table", i)
|
||||
)
|
||||
end
|
||||
|
||||
if overview[i]["reliability"] == false then
|
||||
warnings = warnings .. string.format("<strong>%s</strong></br>",
|
||||
warnings = warnings .. string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: Interface %s has a higher reliability " ..
|
||||
"requirement than tracking hosts (%d)", i, overview[i]["tracking"])
|
||||
)
|
||||
end
|
||||
|
||||
if overview[i]["duplicate_metric"] == true then
|
||||
warnings = warnings .. string.format("<strong>%s</strong></br>",
|
||||
warnings = warnings .. string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: Interface %s has a duplicate metric %s configured", i, overview[i]["metric"])
|
||||
)
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@ function policyError(policy_error)
|
|||
local warnings = ""
|
||||
for i, k in pairs(policy_error) do
|
||||
if policy_error[i] == true then
|
||||
warnings = warnings .. string.format("<strong>%s</strong></br>",
|
||||
warnings = warnings .. string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: Policie %s has exceeding the maximum name of 15 characters", i)
|
||||
)
|
||||
end
|
||||
|
|
|
@ -28,7 +28,7 @@ function ruleWarn(rule_error)
|
|||
local warnings = ""
|
||||
for i, k in pairs(rule_error) do
|
||||
if rule_error[i] == true then
|
||||
warnings = warnings .. string.format("<strong>%s</strong></br>",
|
||||
warnings = warnings .. string.format("<strong>%s</strong><br />",
|
||||
translatef("WARNING: Rule %s have a port configured with no or improper protocol specified!", i)
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue