lean 94b0ae0126 Revert "luci-app-ssr-plus: Optimize and fix bugs (#3841)"
This reverts commit 830d3f946cc9af8d8bf5f6ed7935e69e164f4807.
2020-03-18 21:51:03 +08:00

18 lines
298 B
Lua

f = SimpleForm("logview")
f.reset = false
f.submit = false
t = f:field(TextValue, "conf")
t.rmempty = true
t.rows = 20
function t.cfgvalue()
local logs = luci.util.execi("cat /tmp/ssrplus.log")
local s = ""
for line in logs do
s = line .. "\n" .. s
end
return s
end
t.readonly="readonly"
return f