luci-app-wireguard: show hint in status page if no entry defined yet

Signed-off-by: Helge Mader <ma@dev.tdt.de>
This commit is contained in:
Helge Mader 2020-05-05 15:43:36 +02:00
parent 2a94e18d9b
commit 23d0cb9e5a

View file

@ -182,6 +182,17 @@
<h2>WireGuard Status</h2> <h2>WireGuard Status</h2>
<div class="cbi-section"> <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 local ikey, iface
for ikey, iface in pairs(data) do for ikey, iface in pairs(data) do