summaryrefslogtreecommitdiff
path: root/luci2/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-10-12 20:47:06 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-10-12 20:47:06 +0000
commit6c11828ca6216bd177e974ba6843ec5332afddf4 (patch)
tree7b159da919bdd9db93d617c7e2376d0d3d8f5328 /luci2/share
parent7baae58c613f232322c3104ed54c2d32791c6cc5 (diff)
downloadluci2-ui-6c11828ca6216bd177e974ba6843ec5332afddf4.tar.gz
luci2: add network hostname view
Diffstat (limited to 'luci2/share')
-rw-r--r--luci2/share/acl.d/luci2.json14
-rw-r--r--luci2/share/menu.d/network.json6
2 files changed, 20 insertions, 0 deletions
diff --git a/luci2/share/acl.d/luci2.json b/luci2/share/acl.d/luci2.json
index e8e6949..91f3313 100644
--- a/luci2/share/acl.d/luci2.json
+++ b/luci2/share/acl.d/luci2.json
@@ -309,5 +309,19 @@
]
}
}
+ },
+
+ "hostnames": {
+ "description": "Host entry management",
+ "read": {
+ "uci": [
+ "dhcp"
+ ]
+ },
+ "write": {
+ "uci": [
+ "dhcp"
+ ]
+ }
}
}
diff --git a/luci2/share/menu.d/network.json b/luci2/share/menu.d/network.json
index fc6f236..64921b3 100644
--- a/luci2/share/menu.d/network.json
+++ b/luci2/share/menu.d/network.json
@@ -9,6 +9,12 @@
"view": "network/switch",
"index": 30
},
+ "network/hosts": {
+ "title": "Hostnames",
+ "acls": [ "hostnames" ],
+ "view": "network/hosts",
+ "index": 50
+ },
"network/diagnostics": {
"title": "Diagnostics",
"acls": [ "diagnostics" ],