From 23d0cb9e5aaf75a56dd3b4123f99197a6db00172 Mon Sep 17 00:00:00 2001 From: Helge Mader Date: Tue, 5 May 2020 15:43:36 +0200 Subject: luci-app-wireguard: show hint in status page if no entry defined yet Signed-off-by: Helge Mader --- applications/luci-app-wireguard/luasrc/view/wireguard.htm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'applications/luci-app-wireguard') diff --git a/applications/luci-app-wireguard/luasrc/view/wireguard.htm b/applications/luci-app-wireguard/luasrc/view/wireguard.htm index 855e0aad7..e1e55f55c 100644 --- a/applications/luci-app-wireguard/luasrc/view/wireguard.htm +++ b/applications/luci-app-wireguard/luasrc/view/wireguard.htm @@ -182,6 +182,17 @@

WireGuard Status

+ +<% if next(data) == nil then %> +
+
+

+ <%:This section contains no values yet%> +

+
+
+<% end %> + <%- local ikey, iface for ikey, iface in pairs(data) do -- cgit v1.2.3