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:
commit
7589e7e4ed
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue