diff options
author | Helge Mader <ma@dev.tdt.de> | 2020-05-05 15:43:36 +0200 |
---|---|---|
committer | Helge Mader <ma@dev.tdt.de> | 2020-05-11 11:25:38 +0200 |
commit | 23d0cb9e5aaf75a56dd3b4123f99197a6db00172 (patch) | |
tree | 7dd63493335f465fd25adc79a0ad6aad9af0398c /applications/luci-app-wireguard/luasrc/view | |
parent | 2a94e18d9b71208b19468c7e2d26168b0609601b (diff) |
luci-app-wireguard: show hint in status page if no entry defined yet
Signed-off-by: Helge Mader <ma@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-wireguard/luasrc/view')
-rw-r--r-- | applications/luci-app-wireguard/luasrc/view/wireguard.htm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-wireguard/luasrc/view/wireguard.htm b/applications/luci-app-wireguard/luasrc/view/wireguard.htm index 855e0aad75..e1e55f55c4 100644 --- a/applications/luci-app-wireguard/luasrc/view/wireguard.htm +++ b/applications/luci-app-wireguard/luasrc/view/wireguard.htm @@ -182,6 +182,17 @@ <h2>WireGuard Status</h2> <div class="cbi-section"> + +<% if next(data) == nil then %> + <div class="table cbi-section-table"> + <div class="tr cbi-section-table-row"> + <p> + <em><%:This section contains no values yet%></em> + </p> + </div> + </div> +<% end %> + <%- local ikey, iface for ikey, iface in pairs(data) do |