modules/admin-full: expose switch title on vlan page
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 11 Oct 2011 01:21:58 +0000 (01:21 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 11 Oct 2011 01:21:58 +0000 (01:21 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua

index 744ff661e3868bf93fc3e17e3cce9a5fb17823e5..ca1783d299d8825eb8afc5a12eaddb42ff4cdf7a 100644 (file)
@@ -109,7 +109,10 @@ m.uci:foreach("network", "switch",
 
 
                -- VLAN table
-               s = m:section(TypedSection, "switch_vlan", translatef("VLANs on %q", switch_name))
+               s = m:section(TypedSection, "switch_vlan",
+                       switch_title and translatef("VLANs on %q (%s)", switch_name, switch_title)
+                                                 or translatef("VLANs on %q", switch_name))
+
                s.template = "cbi/tblsection"
                s.addremove = true
                s.anonymous = true