diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-05-11 13:57:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 13:57:31 +0200 |
commit | 7589e7e4ed1fc35e32ca8b83a22a9d97911e8efe (patch) | |
tree | 689e6ed426e5f7c502f19d86dd9303d7a0757ab4 /applications | |
parent | 1de7f103f6490e7a998ebd8326b249b12569412f (diff) | |
parent | 23d0cb9e5aaf75a56dd3b4123f99197a6db00172 (diff) |
Merge pull request #4019 from TDT-AG/pr/20200506-luci-app-wireguard
luci-app-wireguard: show hint in status page if no entry defined yet
Diffstat (limited to 'applications')
-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 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 @@ <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 |