2 LuCI - Lua Development Framework
4 Copyright 2009 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 module "luci.controller.niu.dashboard"
19 local translate = require "luci.i18n".translate
20 local uci = require "luci.model.uci"
24 root.target = alias("niu")
28 entry({"niu"}, alias("niu", "dashboard"), "NIU", 10)
29 entry({"niu", "dashboard"}, call("dashboard"), "Dashboard", 1).css =
36 local dsp = require "luci.dispatcher"
37 local tpl = require "luci.template"
38 local utl = require "luci.util"
39 local uci = require "luci.model.uci"
41 local nds = dsp.node("niu").nodes
42 tpl.render("niu/dashboard", {utl = utl, nodes = nds, dsp = dsp, tpl = tpl})