applications, modules: remove i18n handling from controller modules as it moved to...
[project/luci.git] / modules / niu / luasrc / controller / niu / network.lua
index 9301e25..78a45a6 100644 (file)
@@ -12,7 +12,6 @@ You may obtain a copy of the License at
 $Id$
 ]]--
 
-local require = require
 module "luci.controller.niu.network"
 
 function index()
@@ -32,17 +31,12 @@ function index()
        uci.inst_state:foreach("dhcp", "dhcp", function(s)
                if s.interface == "lan" and s.ignore ~= "1" then 
                        entry({"niu", "network", "assign"}, cbi("niu/network/assign",
-                               toniu), "Display and Customize Address Assignment", 30)
+                               toniu), "Manage Address Assignment", 30)
                end
        end)
-       
-       entry({"niu", "network", "routes"},  cbi("niu/network/routes",
-        toniu), "Display and Customize Routing", 40)
         
-       entry({"niu", "network", "conntrack"},  call("cnntrck"),
-        "Display Local Network Activity", 50)
-end
-
-function cnntrck()
-       require "luci.template".render("niu/network/conntrack")
+        if fs.access("/etc/config/ddns") then
+               entry({"niu", "network", "ddns"},  cbi("niu/network/ddns", toniu),
+                "Configure Dynamic-DNS names", 60)             
+        end
 end