summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-09-11 14:18:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-09-11 14:18:28 +0000
commit57e51eba60cd95b82b11c5857651861decf8dcbe (patch)
treeeca82dc0108f5675f09e76f4a3743c9b8a0f1509 /modules/admin-full/luasrc/model/cbi
parent1aa81b4ae095cea55119e8bc4142fbfb61cf40ff (diff)
modules/admin-full, modules/admin-core, themes/base: add port status indicators to switch config page
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua7
1 files changed, 6 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 25fd0a899c..9dc3f2f636 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@ -10,7 +10,6 @@ You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-$Id$
]]--
m = Map("network", translate("Switch"), translate("The network ports on this device can be combined to several <abbr title=\"Virtual Local Area Network\">VLAN</abbr>s in which computers can communicate directly with each other. <abbr title=\"Virtual Local Area Network\">VLAN</abbr>s are often used to separate different network segments. Often there is by default one Uplink port for a connection to the next greater network like the internet and other ports for a local network."))
@@ -276,6 +275,12 @@ m.uci:foreach("network", "switch",
port_opts[#port_opts+1] = po
end
+
+
+ -- Switch status template
+ s = m:section(SimpleSection)
+ s.template = "admin_network/switch_status"
+ s.switch = switch_name
end
)