From fc84bd87ecbc0e077dc4e624b3139c7e3adb8b0f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 4 May 2011 21:04:31 +0000 Subject: modules/admin-full: add a simple plugin mechanism to status page --- modules/admin-full/luasrc/view/admin_status/index.htm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'modules/admin-full') diff --git a/modules/admin-full/luasrc/view/admin_status/index.htm b/modules/admin-full/luasrc/view/admin_status/index.htm index ea4ec3f5f..f6432ef6f 100644 --- a/modules/admin-full/luasrc/view/admin_status/index.htm +++ b/modules/admin-full/luasrc/view/admin_status/index.htm @@ -562,4 +562,19 @@ $Id$ <% end %> +<%- + require "luci.util" + require "nixio.fs" + + local plugins = nixio.fs.dir(luci.util.libpath() .. "/view/admin_status/index") + if plugins then + local inc + for inc in plugins do + if inc:match("%.htm$") then + include("admin_status/index/" .. inc:gsub("%.htm$", "")) + end + end + end +-%> + <%+footer%> -- cgit v1.2.3