diff options
Diffstat (limited to 'freeradius3-listfiles-html.lsp')
-rw-r--r-- | freeradius3-listfiles-html.lsp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/freeradius3-listfiles-html.lsp b/freeradius3-listfiles-html.lsp index add365d..d85ead9 100644 --- a/freeradius3-listfiles-html.lsp +++ b/freeradius3-listfiles-html.lsp @@ -29,7 +29,9 @@ html = require("acf.html") end %> <h1>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> @@ -52,7 +54,11 @@ end %> <td><%= html.html_escape(v.mtime) %></td> </tr> <% end %> -</tbody></table></dl> +</tbody></table> +<% else %> +<p>No files found</p> +<% end %> +</dl> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) %> |