add some indirection around make targets of module.mk, so you can combine it more...
[project/luci.git] / modules / admin-core / src / controller / admin / network.lua
1 module("luci.controller.admin.network", package.seeall)
2
3 function index()
4         local page  = node("admin", "network")
5         page.target = template("admin_network/index")
6         page.title  = "Netzwerk"  
7         page.order  = 50
8         
9         local page  = node("admin", "network", "vlan")
10         page.target = cbi("admin_network/vlan")
11         page.title  = "Switch"
12         page.order  = 10
13         
14         local page  = node("admin", "network", "ifaces")
15         page.target = cbi("admin_network/ifaces")
16         page.title  = "Schnittstellen"
17         page.order  = 20
18         
19         local page  = node("admin", "network", "dhcp")
20         page.target = cbi("admin_network/dhcp")
21         page.title  = "DHCP-Server"
22         page.order  = 30
23         
24         local page  = node("admin", "network", "ptp")
25         page.target = cbi("admin_network/ptp")
26         page.title  = "PPPoE / PPTP"
27         page.order  = 40
28         
29         local page  = node("admin", "network", "routes")
30         page.target = cbi("admin_network/routes")
31         page.title  = "Statische Routen"
32         page.order  = 50
33         
34         if luci.fs.isfile("/etc/config/qos") then
35                 local page  = node("admin", "network", "qos")
36                 page.target = cbi("admin_network/qos")
37                 page.title  = "Quality of Service"
38         end
39 end