summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-uhttpd
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-uhttpd')
-rw-r--r--applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua17
-rw-r--r--applications/luci-app-uhttpd/po/cs/uhttpd.po8
-rw-r--r--applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json13
3 files changed, 17 insertions, 21 deletions
diff --git a/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua b/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
deleted file mode 100644
index 2e80dd63b4..0000000000
--- a/applications/luci-app-uhttpd/luasrc/controller/uhttpd/uhttpd.lua
+++ /dev/null
@@ -1,17 +0,0 @@
--- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
--- Licensed to the public under the Apache License 2.0.
-
-module("luci.controller.uhttpd.uhttpd", package.seeall)
-
-function index()
- if not nixio.fs.access("/etc/config/uhttpd") then
- return
- end
-
- local page
-
- page = entry({"admin", "services", "uhttpd"}, cbi("uhttpd/uhttpd"), _("uHTTPd"))
- page.leaf = true
-
-end
-
diff --git a/applications/luci-app-uhttpd/po/cs/uhttpd.po b/applications/luci-app-uhttpd/po/cs/uhttpd.po
index cbf2821db4..e6108dfe62 100644
--- a/applications/luci-app-uhttpd/po/cs/uhttpd.po
+++ b/applications/luci-app-uhttpd/po/cs/uhttpd.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"PO-Revision-Date: 2019-12-16 23:24+0000\n"
-"Last-Translator: Jiri Tersel <jiri.tersel@seznam.cz>\n"
+"PO-Revision-Date: 2020-02-02 09:02+0000\n"
+"Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>\n"
"Language-Team: Czech <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsuhttpd/cs/>\n"
"Language: cs\n"
@@ -10,7 +10,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
-"X-Generator: Weblate 3.10-dev\n"
+"X-Generator: Weblate 3.11-dev\n"
#: applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua:135
msgid ""
@@ -29,7 +29,7 @@ msgstr "Odlehčený jednovláknový HTTP(S) server"
#: applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua:20
msgid "Advanced Settings"
-msgstr "Pokročilé nastavení"
+msgstr "Pokročilá nastavení"
#: applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua:135
msgid "Aliases"
diff --git a/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json b/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json
new file mode 100644
index 0000000000..44619ad067
--- /dev/null
+++ b/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json
@@ -0,0 +1,13 @@
+{
+ "admin/services/uhttpd/*": {
+ "title": "uHTTPd",
+ "action": {
+ "type": "cbi",
+ "path": "uhttpd/uhttpd",
+ "post": { "cbi.submit": true }
+ },
+ "depends": {
+ "uci": { "uhttpd": true }
+ }
+ }
+}