projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a94e18
)
luci-app-wireguard: show hint in status page if no entry defined yet
4019/head
author
Helge Mader
<ma@dev.tdt.de>
Tue, 5 May 2020 13:43:36 +0000
(15:43 +0200)
committer
Helge Mader
<ma@dev.tdt.de>
Mon, 11 May 2020 09:25:38 +0000
(11:25 +0200)
Signed-off-by: Helge Mader <ma@dev.tdt.de>
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