summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-diag-core
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-diag-core')
-rw-r--r--applications/luci-diag-core/Makefile4
-rw-r--r--applications/luci-diag-core/luasrc/controller/luci_diag.lua31
-rw-r--r--applications/luci-diag-core/luasrc/view/diag/index.htm18
-rw-r--r--applications/luci-diag-core/luasrc/view/diag/network_config_index.htm18
4 files changed, 71 insertions, 0 deletions
diff --git a/applications/luci-diag-core/Makefile b/applications/luci-diag-core/Makefile
new file mode 100644
index 000000000..15518749d
--- /dev/null
+++ b/applications/luci-diag-core/Makefile
@@ -0,0 +1,4 @@
+PO = diag_core
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/applications/luci-diag-core/luasrc/controller/luci_diag.lua b/applications/luci-diag-core/luasrc/controller/luci_diag.lua
new file mode 100644
index 000000000..396d4cffe
--- /dev/null
+++ b/applications/luci-diag-core/luasrc/controller/luci_diag.lua
@@ -0,0 +1,31 @@
+--[[
+
+Luci Voice Core
+(c) 2009 Daniel Dickinson
+
+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
+
+]]--
+
+require("luci.i18n")
+
+module("luci.controller.luci_diag", package.seeall)
+
+function index()
+ require("luci.i18n")
+ luci.i18n.loadc("diag_core")
+
+ local e = entry({"admin", "network", "diag_config"}, template("diag/network_config_index") , luci.i18n.translate("l_d_diag_config"), 120)
+ e.index = true
+ e.i18n = "diag_core"
+ e.dependent = true
+
+ e = entry({"mini", "diag"}, template("diag/index"), luci.i18n.translate("l_d_diag"), 120)
+ e.index = true
+ e.i18n = "diag_core"
+ e.dependent = true
+end
diff --git a/applications/luci-diag-core/luasrc/view/diag/index.htm b/applications/luci-diag-core/luasrc/view/diag/index.htm
new file mode 100644
index 000000000..5a9a8abc5
--- /dev/null
+++ b/applications/luci-diag-core/luasrc/view/diag/index.htm
@@ -0,0 +1,18 @@
+<%#
+LuCI - Lua Configuration Interface
+(c) 2009 Daniel Dickinson
+
+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$
+
+-%>
+<%+header%>
+<h2><a id="content" name="content"><%:l_d_c_i_diag%></a></h2>
+<p><%:l_d_c_i_diag1%></p>
+<p><%:l_d_c_i_diag2%></p>
+<%+footer%>
diff --git a/applications/luci-diag-core/luasrc/view/diag/network_config_index.htm b/applications/luci-diag-core/luasrc/view/diag/network_config_index.htm
new file mode 100644
index 000000000..b1e75594e
--- /dev/null
+++ b/applications/luci-diag-core/luasrc/view/diag/network_config_index.htm
@@ -0,0 +1,18 @@
+<%#
+LuCI - Lua Configuration Interface
+(c) 2009 Daniel Dickinson
+
+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$
+
+-%>
+<%+header%>
+<h2><a id="content" name="content"><%:l_d_c_nci_diag%></a></h2>
+<p><%:l_d_c_nci_diag1%></p>
+<p><%:l_d_c_nci_diag2%></p>
+<%+footer%>