git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
cd46e16
)
modules/admin-full: expose switch title on vlan page
author
Jo-Philipp Wich
<redacted>
Tue, 11 Oct 2011 01:21:58 +0000
(
01:21
+0000)
committer
Jo-Philipp Wich
<redacted>
Tue, 11 Oct 2011 01:21:58 +0000
(
01:21
+0000)
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
patch
|
blob
|
history
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 744ff661e3868bf93fc3e17e3cce9a5fb17823e5..ca1783d299d8825eb8afc5a12eaddb42ff4cdf7a 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT