[luci-app-bmx7] Add Status page menu entry
This commit is contained in:
parent
1ee363fc22
commit
8db0fb709d
1 changed files with 17 additions and 1 deletions
|
@ -47,4 +47,20 @@ function index()
|
|||
-- getting position of menu
|
||||
local uci_position = uci:get("luci-bmx7","luci","position")
|
||||
|
||||
end
|
||||
|
||||
---------------------------
|
||||
-- Placing the pages in the menu
|
||||
---------------------------
|
||||
|
||||
-- Status (default)
|
||||
entry(place,call("action_status_j"),place[#place],tonumber(uci_position))
|
||||
|
||||
table.insert(place,"Status")
|
||||
entry(place,call("action_status_j"),"Status",0)
|
||||
table.remove(place)
|
||||
|
||||
end
|
||||
|
||||
function action_status_j()
|
||||
luci.template.render("bmx7/status_j", {})
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue