summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-11 01:21:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-11 01:21:58 +0000
commit9ebf90071996df0916d9617e6a935f669812a8b9 (patch)
tree7135fab06ff7c9b4873f7f999992358a6b6b4a70 /modules/admin-full/luasrc/model/cbi
parentcd46e1611ea331fcb295cb61c43ff64b0ba8772f (diff)
modules/admin-full: expose switch title on vlan page
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
index 744ff661e3..ca1783d299 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@ -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