luci-app-simple-adblock: bugfix: template layout on theme-openwrt-2020
[project/luci.git] / applications / luci-app-simple-adblock / luasrc / model / cbi / simple-adblock.lua
index dfe3b8a365baea5215284e4176a4c6754781c0a9..b60123e5d587fdcc74e00d555139e89db1dd9719 100644 (file)
@@ -195,7 +195,7 @@ else
                ss = h:option(DummyValue, "_dummy", translate("Service Status"))
                ss.template = "simple-adblock/status"
                if tmpfsStatus == "statusSuccess" then
-                       ss.value = translatef("%s is blocking %s domains (with %s).", packageVersion, getFileLines(outputFile), targetDNS)
+                       ss.value = translatef("Blocking %s domains (with %s).", getFileLines(outputFile), targetDNS)
                else
                        ss.value = statusTable[tmpfsStatus]
                end
@@ -206,7 +206,7 @@ else
                end
                if tmpfsError then
                        es = h:option(DummyValue, "_dummy", translate("Collected Errors"))
-                       es.template = "simple-adblock/error"
+                       es.template = "simple-adblock/status"
                        es.value = ""
                        local err, e, url
                        for err in tmpfsError:gmatch("[%p%w]+") do
@@ -220,7 +220,7 @@ else
                end
        end
        if packageVersion ~= "" then
-               buttons = h:option(DummyValue, "_dummy")
+               buttons = h:option(DummyValue, "_dummy", translate("Service Control"))
                buttons.template = packageName .. "/buttons"
        end
 end