From: Jo-Philipp Wich Date: Tue, 11 Oct 2011 01:21:58 +0000 (+0000) Subject: modules/admin-full: expose switch title on vlan page X-Git-Tag: 0.11.0~1574 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9ebf90071996df0916d9617e6a935f669812a8b9;p=project%2Fluci.git modules/admin-full: expose switch title on vlan page --- 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