Merge pull request #4019 from TDT-AG/pr/20200506-luci-app-wireguard
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 11 May 2020 11:57:31 +0000 (13:57 +0200)
committerGitHub <noreply@github.com>
Mon, 11 May 2020 11:57:31 +0000 (13:57 +0200)
luci-app-wireguard: show hint in status page if no entry defined yet

applications/luci-app-wireguard/luasrc/view/wireguard.htm

index 855e0aad7513610921192cef632add1d35a8c68d..e1e55f55c474079568aeeaa45467e6ff70d1718a 100644 (file)
 <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