From 29e01e0e5b4bf9a25e88de7309637b0f461ef6a9 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Wed, 2 Jan 2019 06:18:40 -0500 Subject: luci-app-radicale2: Add v2 of CalDAV/CardDAV server Radicale 2.x has been out for some time, and has better support for a number of clients as well as new features, so radicale2 package has been added to packages, and this is the corresponding UI. Signed-off-by: Daniel F. Dickinson --- .../luci-app-radicale2/luasrc/view/cbi/raduigo.htm | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm (limited to 'applications/luci-app-radicale2/luasrc/view') diff --git a/applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm b/applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm new file mode 100644 index 0000000000..2f449d7b0b --- /dev/null +++ b/applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm @@ -0,0 +1,25 @@ +<% +local uci = require "luci.model.uci".cursor() +local http_port = uci:get("radicale2", "server", "host") +local usessl = uci:get("radicale2", "server", "ssl") +if type(http_port) == "table" then + http_port = http_port[1] +end + + if http_port then + http_port = http_port:match("(%d+)$") + end + if not http_port then + http_port = "5232" + end +%> + -- cgit v1.2.3