diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-11 01:21:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-10-11 01:21:58 +0000 |
commit | 9ebf90071996df0916d9617e6a935f669812a8b9 (patch) | |
tree | 7135fab06ff7c9b4873f7f999992358a6b6b4a70 /modules/admin-full/luasrc | |
parent | cd46e1611ea331fcb295cb61c43ff64b0ba8772f (diff) |
modules/admin-full: expose switch title on vlan page
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 5 |
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 744ff661e..ca1783d29 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 |