mirror of https://github.com/aredn/aredn.git
add svc alert icon (#461)
This commit is contained in:
parent
665fa4924f
commit
7b768e6ce1
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
|
@ -360,7 +360,7 @@ if f then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if val == "_add" and parms.button_save then
|
if val == "_add" and parms.button_save then
|
||||||
porterr(val .. " this rule must be added or cleared out before saving changes")
|
porterr(val .. " this rule must be added or cleared out before saving changes")
|
||||||
break
|
break
|
||||||
|
@ -401,7 +401,7 @@ if f then
|
||||||
end
|
end
|
||||||
|
|
||||||
f:write(_intf .. ":" .. _type .. ":" .. _out .. ":" .. _ip .. ":" .. _in .. ":" .. _enable .. "\n")
|
f:write(_intf .. ":" .. _type .. ":" .. _out .. ":" .. _ip .. ":" .. _in .. ":" .. _enable .. "\n")
|
||||||
|
|
||||||
for _, var in ipairs(vars)
|
for _, var in ipairs(vars)
|
||||||
do
|
do
|
||||||
parms["port" .. port_num .. var] = _G[var]
|
parms["port" .. port_num .. var] = _G[var]
|
||||||
|
@ -829,7 +829,7 @@ if parms.button_save and not (#port_err > 0 or #dhcp_err > 0 or #dmz_err > 0 or
|
||||||
filecopy(tmpdir .. "/dhcp", dhcpfile)
|
filecopy(tmpdir .. "/dhcp", dhcpfile)
|
||||||
filecopy(tmpdir .. "/services", servfile)
|
filecopy(tmpdir .. "/services", servfile)
|
||||||
filecopy(tmpdir .. "/aliases", aliasfile)
|
filecopy(tmpdir .. "/aliases", aliasfile)
|
||||||
|
|
||||||
if os.execute("/usr/local/bin/node-setup -a -p mesh") ~= 0 then
|
if os.execute("/usr/local/bin/node-setup -a -p mesh") ~= 0 then
|
||||||
err("problem with configuration")
|
err("problem with configuration")
|
||||||
end
|
end
|
||||||
|
@ -891,7 +891,7 @@ function print_reservations()
|
||||||
html.print("<table cellpadding=0 cellspacing=0><tr><th colspan=4>DHCP Address Reservations</th></tr>")
|
html.print("<table cellpadding=0 cellspacing=0><tr><th colspan=4>DHCP Address Reservations</th></tr>")
|
||||||
html.print("<tr><td colspan=4 height=5></td></tr>")
|
html.print("<tr><td colspan=4 height=5></td></tr>")
|
||||||
html.print("<tr><td align=center>Hostname</td><td align=center>IP Address</td><td align=center>MAC Address</td>")
|
html.print("<tr><td align=center>Hostname</td><td align=center>IP Address</td><td align=center>MAC Address</td>")
|
||||||
|
|
||||||
if dmz_mode ~= 0 then
|
if dmz_mode ~= 0 then
|
||||||
html.print("<td align=center style='font-size:10px;'>Do Not<br>Propagate</td><td></td></tr>")
|
html.print("<td align=center style='font-size:10px;'>Do Not<br>Propagate</td><td></td></tr>")
|
||||||
else
|
else
|
||||||
|
@ -1209,7 +1209,7 @@ function print_services()
|
||||||
end
|
end
|
||||||
local svc = string.format([[PlParam "service" "%s://%s:%s/%s|tcp|%s"]], (_link == "1" and _proto or "http"), _host, (_link == "1" and _port or "0"), _suffix, _name)
|
local svc = string.format([[PlParam "service" "%s://%s:%s/%s|tcp|%s"]], (_link == "1" and _proto or "http"), _host, (_link == "1" and _port or "0"), _suffix, _name)
|
||||||
if val ~= "_add" and activesvc and not activesvc[svc] then
|
if val ~= "_add" and activesvc and not activesvc[svc] then
|
||||||
html.print("<img style='vertical-align:middle' src='/dot.png' title='Service is not being advertised'>")
|
html.print("<img style='vertical-align:middle' src='/alert-circle-outline.png' title='Service is not being advertised'>")
|
||||||
end
|
end
|
||||||
html.print("</nobr></td></tr>")
|
html.print("</nobr></td></tr>")
|
||||||
|
|
||||||
|
@ -1298,7 +1298,7 @@ print_services()
|
||||||
html.print("</td>")
|
html.print("</td>")
|
||||||
html.print("</tr></table></td></tr>")
|
html.print("</tr></table></td></tr>")
|
||||||
html.print("<tr><td> </td></tr>")
|
html.print("<tr><td> </td></tr>")
|
||||||
html.print("<tr><td><hr></td></tr>")
|
html.print("<tr><td><hr></td></tr>")
|
||||||
html.print("</table><table width=790>")
|
html.print("</table><table width=790>")
|
||||||
html.print("<tr><td align=center valign=top>")
|
html.print("<tr><td align=center valign=top>")
|
||||||
if dmz_mode ~= 0 then
|
if dmz_mode ~= 0 then
|
||||||
|
|
Loading…
Reference in New Issue