From 9ebf90071996df0916d9617e6a935f669812a8b9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 11 Oct 2011 01:21:58 +0000 Subject: [PATCH] modules/admin-full: expose switch title on vlan page --- modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2