luci-app-mwan3: unify header in configuration tab
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 12 Jan 2018 09:50:58 +0000 (10:50 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 18 Jan 2018 14:09:08 +0000 (15:09 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/member.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/notify.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua

index 919ed46..3e1a283 100644 (file)
@@ -14,9 +14,9 @@ $Id$
 
 local net = require "luci.model.network".init()
 
-m = Map("mwan3")
+m = Map("mwan3", translate("MWAN - Globals"))
 
-s = m:section(NamedSection, "globals", "globals", translate("Globals mwan3 options"))
+s = m:section(NamedSection, "globals", "globals", nil)
 n = s:option(ListValue, "local_source",
        translate("Local source interface"),
        translate("Use the IP address of this interface as source IP address for traffic initiated by the router itself"))
index 77198d5..4f5dc75 100644 (file)
@@ -98,12 +98,12 @@ errorRouteList = " "
 interfaceCheck()
 
 
-m5 = Map("mwan3", translate("MWAN Interface Configuration"),
+m5 = Map("mwan3", translate("MWAN - Interfaces"),
        interfaceWarnings())
        m5:append(Template("mwan/config_css"))
 
 
-mwan_interface = m5:section(TypedSection, "interface", translate("Interfaces"),
+mwan_interface = m5:section(TypedSection, "interface", nil,
        translate("MWAN supports up to 250 physical and/or logical interfaces<br />" ..
        "MWAN requires that all interfaces have a unique metric configured in /etc/config/network<br />" ..
        "Names must match the interface name found in /etc/config/network (see advanced tab)<br />" ..
index b73ee57..aa7daab 100644 (file)
@@ -3,11 +3,11 @@
 ds = require "luci.dispatcher"
 
 
-m5 = Map("mwan3", translate("MWAN Member Configuration"))
+m5 = Map("mwan3", translate("MWAN - Members"))
        m5:append(Template("mwan/config_css"))
 
 
-mwan_member = m5:section(TypedSection, "member", translate("Members"),
+mwan_member = m5:section(TypedSection, "member", nil,
        translate("Members are profiles attaching a metric and weight to an MWAN interface<br />" ..
        "Names may contain characters A-Z, a-z, 0-9, _ and no spaces<br />" ..
        "Members may not share the same name as configured interfaces, policies or rules"))
index 20e86fc..14237e6 100644 (file)
@@ -4,9 +4,9 @@ local fs = require "nixio.fs"
 local ut = require "luci.util"
 script = "/etc/mwan3.user"
 
-m5 = SimpleForm("luci", nil)
+m5 = SimpleForm("luci", translate("MWAN - Notification"))
 
-f = m5:section(SimpleSection, translate("MWAN Notification"),
+f = m5:section(SimpleSection, nil,
        translate("This section allows you to modify the content of \"/etc/mwan3.user\".<br />" ..
        "The file is also preserved during sysupgrade.<br />" ..
        "<br />" ..
index 495b45e..363ba91 100644 (file)
@@ -29,12 +29,12 @@ err_name_list = " "
 policyCheck()
 
 
-m5 = Map("mwan3", translate("MWAN Policy Configuration"),
+m5 = Map("mwan3", translate("MWAN - Policies"),
        policyWarn())
        m5:append(Template("mwan/config_css"))
 
 
-mwan_policy = m5:section(TypedSection, "policy", translate("Policies"),
+mwan_policy = m5:section(TypedSection, "policy", nil,
        translate("Policies are profiles grouping one or more members controlling how MWAN distributes traffic<br />" ..
        "Member interfaces with lower metrics are used first. Interfaces with the same metric load-balance<br />" ..
        "Load-balanced member interfaces distribute more traffic out those with higher weights<br />" ..
index 586f174..9134bbc 100644 (file)
@@ -33,12 +33,12 @@ error_protocol_list = " "
 ruleCheck()
 
 
-m5 = Map("mwan3", translate("MWAN Rule Configuration"),
+m5 = Map("mwan3", translate("MWAN - Rules"),
        ruleWarn())
        m5:append(Template("mwan/config_css"))
 
 
-mwan_rule = m5:section(TypedSection, "rule", translate("Traffic Rules"),
+mwan_rule = m5:section(TypedSection, "rule", nil,
        translate("Rules specify which traffic will use a particular MWAN policy based on IP address, port or protocol<br />" ..
        "Rules are matched from top to bottom. Rules below a matching rule are ignored. Traffic not matching any rule is routed using the main routing table<br />" ..
        "Traffic destined for known (other than default) networks is handled by the main routing table. Traffic matching a rule, but all WAN interfaces for that policy are down will be blackholed<br />" ..