projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NIU:
[project/luci.git]
/
modules
/
niu
/
luasrc
/
model
/
cbi
/
niu
/
network
/
routes1.lua
diff --git
a/modules/niu/luasrc/model/cbi/niu/network/routes1.lua
b/modules/niu/luasrc/model/cbi/niu/network/routes1.lua
index
a1d1508
..
094831e
100644
(file)
--- a/
modules/niu/luasrc/model/cbi/niu/network/routes1.lua
+++ b/
modules/niu/luasrc/model/cbi/niu/network/routes1.lua
@@
-12,12
+12,15
@@
You may obtain a copy of the License at
$Id$
]]--
$Id$
]]--
-m = Map("network", translate("Routes"), translate("a_n_routes1"))
+m = Map("network", translate("Display and Customize Routing"),
+translate("With additional static routes you allow computers on your network to reach unannounced remote hosts or networks."))
local routes6 = luci.sys.net.routes6()
local bit = require "bit"
local routes6 = luci.sys.net.routes6()
local bit = require "bit"
-s = m:section(TypedSection, "route", translate("Static IPv4 Routes"))
+m:append(Template("niu/network/rtable"))
+
+s = m:section(TypedSection, "route", "Static IPv4 Routes")
s.addremove = true
s.anonymous = true
s.addremove = true
s.anonymous = true
@@
-30,7
+33,7
@@
s:option(Value, "netmask", translate("<abbr title=\"Internet Protocol Version 4\
s:option(Value, "gateway", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Gateway"))
if routes6 then
s:option(Value, "gateway", translate("<abbr title=\"Internet Protocol Version 4\">IPv4</abbr>-Gateway"))
if routes6 then
- s = m:section(TypedSection, "route6",
translate("Static IPv6 Routes")
)
+ s = m:section(TypedSection, "route6",
"Static IPv6 Routes"
)
s.addremove = true
s.anonymous = true
s.addremove = true
s.anonymous = true
@@
-51,5
+54,4
@@
m.uci:foreach("network", "interface", function(s)
end
end)
end
end)
-
return m
return m