diff options
author | Daniel F. Dickinson <cshored@thecshore.com> | 2019-01-02 06:18:40 -0500 |
---|---|---|
committer | Daniel F. Dickinson <cshored@thecshore.com> | 2019-01-10 05:52:12 -0500 |
commit | 29e01e0e5b4bf9a25e88de7309637b0f461ef6a9 (patch) | |
tree | 92343df8693a4ef380504fe2f2359d21a4eced20 /applications/luci-app-radicale2/luasrc/view | |
parent | 1893892581707fcd83e684a7a03dd6b5d3c2c3a2 (diff) |
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 <cshored@thecshore.com>
Diffstat (limited to 'applications/luci-app-radicale2/luasrc/view')
-rw-r--r-- | applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm | 25 |
1 files changed, 25 insertions, 0 deletions
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 +%> +<script type="text/javascript"> +<% +if usessl then +%> + var protocol = 'https' +<% else %> + var protocol = 'http' +<% end %> +document.write('<a href="' + protocol + '://' + window.location.hostname + ':' + <%=http_port%> + '/"><%=luci.i18n.translate("Go to Radicale 2.x Web UI")%></a>'); +</script> |