summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBenoît Knecht <benoit.knecht@gmail.com>2010-04-13 12:58:34 +0000
committerBenoît Knecht <benoit.knecht@gmail.com>2010-04-13 12:58:34 +0000
commit9ed5a0d6fa01962d97333e5ba8c57c3e008410f2 (patch)
tree766909df6474f0ed3f77baa116f4cc876c854b76
parent4cf6abae1a20272490c5972b5eaa1907b2c06390 (diff)
admin-full: add table headers on the 'Network' page
Match the headers of the admin-mini version.
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/network.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
index 2dc9e9b43a..fffb3e50f2 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
@@ -83,7 +83,9 @@ if luci.model.uci.cursor():load("firewall") then
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)
local ix = self.map:get(section, "ifname") or ""
local mac = fs.readfile("/sys/class/net/" .. ix .. "/address")
@@ -101,12 +103,15 @@ function hwaddr.cfgvalue(self, section)
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)
return table.concat(wa.network_get_addresses(section), ", ")
end
-txrx = s:option(DummyValue, "_txrx")
+txrx = s:option(DummyValue, "_txrx", translate("Traffic"),
+ translate("transmitted / received"))
function txrx.cfgvalue(self, section)
local ix = self.map:get(section, "ifname")
@@ -120,7 +125,8 @@ function txrx.cfgvalue(self, section)
return string.format("%s / %s", tx, rx)
end
-errors = s:option(DummyValue, "_err")
+errors = s:option(DummyValue, "_err", translate("Errors"),
+ translate("TX / RX"))
function errors.cfgvalue(self, section)
local ix = self.map:get(section, "ifname")