summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-05-04 21:04:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-05-04 21:04:31 +0000
commitfc84bd87ecbc0e077dc4e624b3139c7e3adb8b0f (patch)
treeb633610a103136d6c5ce82149e24c3ce45c00beb /modules/admin-full/luasrc
parent6e6bac2a4aa52cc3b6ebe2112e15ba274d6a7234 (diff)
modules/admin-full: add a simple plugin mechanism to status page
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/view/admin_status/index.htm15
1 files changed, 15 insertions, 0 deletions
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$
</fieldset>
<% 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%>