projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1de7f10
)
Merge pull request #4019 from TDT-AG/pr/20200506-luci-app-wireguard
author
Florian Eckert
<fe@dev.tdt.de>
Mon, 11 May 2020 11:57:31 +0000
(13:57 +0200)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/applications/luci-app-wireguard/luasrc/view/wireguard.htm
b/applications/luci-app-wireguard/luasrc/view/wireguard.htm
index 855e0aad7513610921192cef632add1d35a8c68d..e1e55f55c474079568aeeaa45467e6ff70d1718a 100644
(file)
--- 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