X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fniu%2Fluasrc%2Fmodel%2Fcbi%2Fniu%2Fnetwork%2Froutes1.lua;h=094831e72f18e48ac11de34edaa83531905589c9;hp=a1d150807d1b097c200f08245d1562daac1de41e;hb=0784b7b9d512602f519aa7c0e826f97ef5ca25ff;hpb=7c765875884d6866c53b63757731b079bace2e9b diff --git a/modules/niu/luasrc/model/cbi/niu/network/routes1.lua b/modules/niu/luasrc/model/cbi/niu/network/routes1.lua index a1d150807..094831e72 100644 --- 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$ ]]-- -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" -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 @@ -30,7 +33,7 @@ s:option(Value, "netmask", translate("IPv4-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 @@ -51,5 +54,4 @@ m.uci:foreach("network", "interface", function(s) end end) - return m