1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-15 03:33:52 +02:00

[luci-app-bmx7] Add Status page menu entry

This commit is contained in:
Roger Pueyo Centelles 2016-03-10 11:21:12 +01:00
parent 1ee363fc22
commit 8db0fb709d

View File

@ -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