diff --git a/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/controller/mini/status.lua b/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/controller/mini/status.lua new file mode 100644 index 0000000..719a37b --- /dev/null +++ b/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/controller/mini/status.lua @@ -0,0 +1,33 @@ +--[[ +LuCI - Lua Configuration Interface + +Copyright 2008 Steven Barth + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id: status.lua 5118 2009-07-23 03:32:30Z jow $ +]]-- +module("luci.controller.mini.status", package.seeall) + +function index() + luci.i18n.loadc("admin-core") + local i18n = luci.i18n.translate + + entry({"syslog"}, call("action_syslog"), i18n("syslog", "System Log"), 5) + entry({"dmesg"}, call("action_dmesg"), i18n("dmesg", "Kernel Log"), 6) + +end + +function action_syslog() + local syslog = luci.sys.syslog() + luci.template.render("mini/syslog", {syslog=syslog}) +end + +function action_dmesg() + local dmesg = luci.sys.dmesg() + luci.template.render("mini/dmesg", {dmesg=dmesg}) +end diff --git a/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/view/mini/dmesg.htm b/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/view/mini/dmesg.htm new file mode 100644 index 0000000..4fa8673 --- /dev/null +++ b/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/view/mini/dmesg.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id: syslog.htm 3622 2008-10-23 16:05:55Z jow $ + +-%> +<%+header%> +

<%:dmesg%>

+
+ +
+<%+footer%> diff --git a/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/view/mini/syslog.htm b/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/view/mini/syslog.htm new file mode 100644 index 0000000..10b3ecd --- /dev/null +++ b/mote/v2/openwrt/package/luci/modules/admin-mini/luasrc/view/mini/syslog.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id: syslog.htm 3791 2008-11-16 22:45:10Z jow $ + +-%> +<%+header%> +

<%:syslog%>

+
+ +
+<%+footer%> diff --git a/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/dashboard.css b/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/dashboard.css index 184afe7..5aa9cb9 100644 --- a/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/dashboard.css +++ b/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/dashboard.css @@ -32,4 +32,12 @@ div.di_wifi a { background-image: url(icons/wifi.png); } +div.di_syslog a { + background-image: url(icons/syslog.png); +} + +div.di_sensor a { + background-image: url(icons/sensor.png); +} + } diff --git a/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/icons/sensor.png b/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/icons/sensor.png new file mode 100644 index 0000000..8c004b7 Binary files /dev/null and b/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/icons/sensor.png differ diff --git a/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/icons/syslog.png b/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/icons/syslog.png new file mode 100644 index 0000000..be16575 Binary files /dev/null and b/mote/v2/openwrt/package/luci/themes/oxygen/htdocs/luci-static/oxygen/icons/syslog.png differ diff --git a/mote/v2/openwrt/package/luci/themes/oxygen/luasrc/view/themes/oxygen/header.htm b/mote/v2/openwrt/package/luci/themes/oxygen/luasrc/view/themes/oxygen/header.htm index b6057fe..979723e 100644 --- a/mote/v2/openwrt/package/luci/themes/oxygen/luasrc/view/themes/oxygen/header.htm +++ b/mote/v2/openwrt/package/luci/themes/oxygen/luasrc/view/themes/oxygen/header.htm @@ -110,6 +110,10 @@ ucimenu("/" .. category .. "/uci/", tree.nodes[category].nodes["uci"], "changes"