diff options
author | Liangbin Lian <jjm2473@gmail.com> | 2022-07-05 17:01:06 +0800 |
---|---|---|
committer | Liangbin Lian <jjm2473@gmail.com> | 2023-10-26 19:56:37 +0800 |
commit | 7cc4aeb5c3fdde67552bc2019bbabbcb06b1c0d4 (patch) | |
tree | 75428adf1e04d6157dc9f4df51a9066282d1d54b /applications | |
parent | 25dd8934f18a6cebfca1adb8a0d4b5d0bed73145 (diff) |
luci-app-dockerman: hide config buttons in overview page
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-dockerman/luasrc/controller/dockerman.lua | 2 | ||||
-rw-r--r-- | applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-app-dockerman/luasrc/controller/dockerman.lua b/applications/luci-app-dockerman/luasrc/controller/dockerman.lua index f00f863ca5..ac0668b073 100644 --- a/applications/luci-app-dockerman/luasrc/controller/dockerman.lua +++ b/applications/luci-app-dockerman/luasrc/controller/dockerman.lua @@ -33,7 +33,7 @@ function index() return end - entry({"admin", "docker", "overview"},cbi("dockerman/overview"),_("Overview"), 2).leaf=true + entry({"admin", "docker", "overview"}, form("dockerman/overview"),_("Overview"), 2).leaf=true entry({"admin", "docker", "containers"}, form("dockerman/containers"), _("Containers"), 3).leaf=true entry({"admin", "docker", "images"}, form("dockerman/images"), _("Images"), 4).leaf=true entry({"admin", "docker", "networks"}, form("dockerman/networks"), _("Networks"), 5).leaf=true diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua index 022664738d..0506670cdb 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua @@ -18,9 +18,11 @@ function byte_format(byte) end end -m = Map("dockerd", +m = SimpleForm("dockerd", translate("Docker - Overview"), translate("An overview with the relevant data is displayed here with which the LuCI docker client is connected.")) +m.submit=false +m.reset=false local docker_info_table = {} docker_info_table['3ServerVersion'] = {_key=translate("Docker Version"),_value='-'} |