admin-full: add table headers on the 'Network' page
Match the headers of the admin-mini version.
This commit is contained in:
parent
4cf6abae1a
commit
9ed5a0d6fa
1 changed files with 10 additions and 4 deletions
|
@ -83,7 +83,9 @@ if luci.model.uci.cursor():load("firewall") then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
hwaddr = s:option(DummyValue, "_hwaddr")
|
hwaddr = s:option(DummyValue, "_hwaddr",
|
||||||
|
translate("<abbr title=\"Media Access Control\">MAC</abbr>-Address"),
|
||||||
|
translate("Hardware Address"))
|
||||||
function hwaddr.cfgvalue(self, section)
|
function hwaddr.cfgvalue(self, section)
|
||||||
local ix = self.map:get(section, "ifname") or ""
|
local ix = self.map:get(section, "ifname") or ""
|
||||||
local mac = fs.readfile("/sys/class/net/" .. ix .. "/address")
|
local mac = fs.readfile("/sys/class/net/" .. ix .. "/address")
|
||||||
|
@ -101,12 +103,15 @@ function hwaddr.cfgvalue(self, section)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
ipaddr = s:option(DummyValue, "ipaddr", translate("Addresses"))
|
ipaddr = s:option(DummyValue, "ipaddr",
|
||||||
|
translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>" ..
|
||||||
|
"-Address"))
|
||||||
function ipaddr.cfgvalue(self, section)
|
function ipaddr.cfgvalue(self, section)
|
||||||
return table.concat(wa.network_get_addresses(section), ", ")
|
return table.concat(wa.network_get_addresses(section), ", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
txrx = s:option(DummyValue, "_txrx")
|
txrx = s:option(DummyValue, "_txrx", translate("Traffic"),
|
||||||
|
translate("transmitted / received"))
|
||||||
|
|
||||||
function txrx.cfgvalue(self, section)
|
function txrx.cfgvalue(self, section)
|
||||||
local ix = self.map:get(section, "ifname")
|
local ix = self.map:get(section, "ifname")
|
||||||
|
@ -120,7 +125,8 @@ function txrx.cfgvalue(self, section)
|
||||||
return string.format("%s / %s", tx, rx)
|
return string.format("%s / %s", tx, rx)
|
||||||
end
|
end
|
||||||
|
|
||||||
errors = s:option(DummyValue, "_err")
|
errors = s:option(DummyValue, "_err", translate("Errors"),
|
||||||
|
translate("TX / RX"))
|
||||||
|
|
||||||
function errors.cfgvalue(self, section)
|
function errors.cfgvalue(self, section)
|
||||||
local ix = self.map:get(section, "ifname")
|
local ix = self.map:get(section, "ifname")
|
||||||
|
|
Loading…
Reference in a new issue