summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-lua-runtime/luasrc/view/admin_status/luaindex.htm
blob: ef664edcb209194f717832ad5294831512cf0aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%-
	local util = require "luci.util"
	local fs = require "nixio.fs"

	local incdir = util.libpath() .. "/view/admin_status/index/"
	if fs.access(incdir) then
		local _, inc
		local includes = {}
		for inc in fs.dir(incdir) do
			if inc:match("%.htm$") then
				includes[#includes + 1] = inc:gsub("%.htm$", "")
			end
		end
		for _, inc in luci.util.vspairs(includes) do
			include("admin_status/index/" .. inc)
		end
	end
-%>