applications, modules: remove i18n handling from controller modules as it moved to...
[project/luci.git] / modules / niu / luasrc / controller / niu / dashboard.lua
index e3270e4..757024d 100644 (file)
@@ -16,7 +16,6 @@ local req = require
 module "luci.controller.niu.dashboard"
 
 function index()
-       local translate = require "luci.i18n".translate
        local uci = require "luci.model.uci"
 
        local root = node()
@@ -26,7 +25,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 +36,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})