NIU:
[project/luci.git] / modules / niu / luasrc / controller / niu / dashboard.lua
index e3270e4..bd4875c 100644 (file)
@@ -26,7 +26,8 @@ function index()
        end
 
        entry({"niu"}, alias("niu", "dashboard"), "NIU", 10)
-       entry({"niu", "dashboard"}, call("dashboard"), "Dashboard", 1)
+       entry({"niu", "dashboard"}, call("dashboard"), "Dashboard", 1).css = 
+       "niu.css"
 end
 
 local require = req
@@ -36,8 +37,6 @@ function dashboard()
        local tpl = require "luci.template"
        local utl = require "luci.util"
        local uci = require "luci.model.uci"
-       local str = require "luci.store"
-       str.uci_state = str.uci_state or uci.cursor()
 
        local nds = dsp.node("niu").nodes
        tpl.render("niu/dashboard", {utl = utl, nodes = nds, dsp = dsp, tpl = tpl})