diff --git a/luasrc/model/cbi/btcpayserver.lua b/luasrc/model/cbi/btcpayserver.lua index 41c62d9..283390e 100644 --- a/luasrc/model/cbi/btcpayserver.lua +++ b/luasrc/model/cbi/btcpayserver.lua @@ -7,11 +7,11 @@ local btcpayserver_model = require "luci.model.btcpayserver" local m, s, o m = taskd.docker_map("btcpayserver", "btcpayserver", "/usr/libexec/apps/btcpayserver/btcpayserver.sh", - translate("btcpayserver"), + translate("BTCPay Server"), translate("BTCPay Server is a self-hosted, open-source cryptocurrency payment processor. It's secure, private, censorship-resistant and free.") - .. translate("Official website:") .. ' hhttps://docs.linuxserver.io/images/docker-btcpayserver/') + .. "
" .. translate("Official website:") .. ' https://docs.linuxserver.io/images/docker-btcpayserver/') -s = m:section(SimpleSection, translate("Service Status"), translate("btcpayserver status:")) +s = m:section(SimpleSection, translate("Container Status")) s:append(Template("btcpayserver/status")) s = m:section(TypedSection, "btcpayserver", translate("Setup"), translate("The following parameters will only take effect during installation or upgrade:")) diff --git a/luasrc/view/btcpayserver/status.htm b/luasrc/view/btcpayserver/status.htm index 393c36b..800d120 100644 --- a/luasrc/view/btcpayserver/status.htm +++ b/luasrc/view/btcpayserver/status.htm @@ -2,30 +2,19 @@ local util = require "luci.util" local container_status = util.trim(util.exec("/usr/libexec/apps/btcpayserver/btcpayserver.sh status")) local container_running = string.match(string.lower(container_status), "^up%W") +local port = util.trim(util.exec("/usr/libexec/apps/btcpayserver/btcpayserver.sh port")) +if port == "" then + port = "3000" +end -%>
-
<% if container_running then %> + <% else %> <% end %>
- -<% -if container_running then - local port = util.trim(util.exec("/usr/libexec/apps/btcpayserver/btcpayserver.sh port")) - if port == "" then - port = "3000" - end --%> -
- -
- -
-
-<% end %>