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

This commit is contained in:
Roger Pueyo Centelles 2016-03-10 13:41:21 +01:00 committed by Axel Neumann
parent 74078557b7
commit ef61e355eb
1 changed files with 11 additions and 0 deletions

View File

@ -59,8 +59,19 @@ function index()
entry(place,call("action_status_j"),"Status",0)
table.remove(place)
-- Nodes list
table.insert(place,"Nodes")
entry(place,call("action_nodes_j"),"Nodes",1)
table.remove(place)
end
function action_status_j()
luci.template.render("bmx7/status_j", {})
end
function action_nodes_j()
local http = require "luci.http"
local link_non_js = "/cgi-bin/luci" .. http.getenv("PATH_INFO") .. '/nodes_nojs'
luci.template.render("bmx7/nodes_j", {link_non_js=link_non_js})
end