diff options
author | Jan Hoffmann <jan@3e8.eu> | 2023-02-09 22:27:00 +0100 |
---|---|---|
committer | Jan Hoffmann <jan@3e8.eu> | 2023-02-09 22:33:55 +0100 |
commit | 3f9d47f97648974b5fd138a3996d7c8841015840 (patch) | |
tree | 2bf821fe22f247f1b3e550bccb17d7ff79711360 /modules/luci-mod-dsl/root/usr | |
parent | a53164c880e33150d83fef6c905f445f1e00fbd8 (diff) |
luci-mod-dsl: add page with DSL status information
This shows the same information which is currently available on the
general overview page of luci-mod-status.
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'modules/luci-mod-dsl/root/usr')
-rw-r--r-- | modules/luci-mod-dsl/root/usr/share/luci/menu.d/luci-mod-dsl.json | 25 | ||||
-rw-r--r-- | modules/luci-mod-dsl/root/usr/share/rpcd/acl.d/luci-mod-dsl.json | 6 |
2 files changed, 24 insertions, 7 deletions
diff --git a/modules/luci-mod-dsl/root/usr/share/luci/menu.d/luci-mod-dsl.json b/modules/luci-mod-dsl/root/usr/share/luci/menu.d/luci-mod-dsl.json index 76d56fd6d5..4e77b6f9e6 100644 --- a/modules/luci-mod-dsl/root/usr/share/luci/menu.d/luci-mod-dsl.json +++ b/modules/luci-mod-dsl/root/usr/share/luci/menu.d/luci-mod-dsl.json @@ -1,13 +1,30 @@ { "admin/status/dsl": { - "title": "DSL line spectrum", + "title": "DSL Status", "order": 7, "action": { - "type": "view", - "path": "status/dsl/spectrum" + "type": "firstchild" }, "depends": { - "acl": [ "luci-mod-dsl-spectrum" ] + "acl": [ "luci-mod-dsl" ] + } + }, + + "admin/status/dsl/stats": { + "title": "Stats", + "order": 1, + "action": { + "type": "view", + "path": "status/dsl/stats" + } + }, + + "admin/status/dsl/spectrum": { + "title": "Spectrum", + "order": 2, + "action": { + "type": "view", + "path": "status/dsl/spectrum" } } } diff --git a/modules/luci-mod-dsl/root/usr/share/rpcd/acl.d/luci-mod-dsl.json b/modules/luci-mod-dsl/root/usr/share/rpcd/acl.d/luci-mod-dsl.json index 7a5b6fcf4b..ee69882f4e 100644 --- a/modules/luci-mod-dsl/root/usr/share/rpcd/acl.d/luci-mod-dsl.json +++ b/modules/luci-mod-dsl/root/usr/share/rpcd/acl.d/luci-mod-dsl.json @@ -1,9 +1,9 @@ { - "luci-mod-dsl-spectrum": { - "description": "Grant access to luci-mod-dsl spectrum", + "luci-mod-dsl": { + "description": "Grant access to luci-mod-dsl", "read": { "ubus": { - "dsl": [ "statistics" ] + "dsl": [ "metrics", "statistics" ] } } } |