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
This commit is contained in:
Florian Eckert 2020-05-11 13:57:31 +02:00 committed by GitHub
commit 7589e7e4ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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