summaryrefslogtreecommitdiffstats
path: root/freeradius3-listpasswdfiles-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'freeradius3-listpasswdfiles-html.lsp')
-rw-r--r--freeradius3-listpasswdfiles-html.lsp10
1 files changed, 8 insertions, 2 deletions
diff --git a/freeradius3-listpasswdfiles-html.lsp b/freeradius3-listpasswdfiles-html.lsp
index 303a481..4633375 100644
--- a/freeradius3-listpasswdfiles-html.lsp
+++ b/freeradius3-listpasswdfiles-html.lsp
@@ -22,7 +22,9 @@ html = require("acf.html")
</script>
<h1>Passwd Configuration</h1>
-<dl><table id="list" class="tablesorter"><thead>
+<dl>
+<% if #view.value>0 then %>
+<table id="list" class="tablesorter"><thead>
<tr>
<th>Action</th>
<th>File</th>
@@ -42,4 +44,8 @@ html = require("acf.html")
<td><%= html.html_escape(v.mtime) %></td>
</tr>
<% end %>
-</tbody></table></dl>
+</tbody></table>
+<% else %>
+<p>No files found</p>
+<% end %>
+</dl>