summaryrefslogtreecommitdiffstats
path: root/freeradius3-listmacauthfiles-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'freeradius3-listmacauthfiles-html.lsp')
-rw-r--r--freeradius3-listmacauthfiles-html.lsp10
1 files changed, 8 insertions, 2 deletions
diff --git a/freeradius3-listmacauthfiles-html.lsp b/freeradius3-listmacauthfiles-html.lsp
index 1ebac97..2293b8a 100644
--- a/freeradius3-listmacauthfiles-html.lsp
+++ b/freeradius3-listmacauthfiles-html.lsp
@@ -24,7 +24,9 @@ html = require("acf.html")
<% htmlviewfunctions.displaycommandresults({"editmacauthfile"}, session) %>
<h1>MAC Authentication 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>
@@ -44,4 +46,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>