diff options
Diffstat (limited to 'freeradius3-listfiles-html.lsp')
-rw-r--r-- | freeradius3-listfiles-html.lsp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freeradius3-listfiles-html.lsp b/freeradius3-listfiles-html.lsp index 812543a..84effe0 100644 --- a/freeradius3-listfiles-html.lsp +++ b/freeradius3-listfiles-html.lsp @@ -30,6 +30,7 @@ html = require("acf.html") end %> <% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Configuration"}), page_info) %> +<% if #view.value>0 then %> <table id="list" class="tablesorter"><thead> <tr> <th>Action</th> @@ -57,6 +58,9 @@ end %> </tr> <% end %> </tbody></table> +<% else %> +<p>No files found</p> +<% end %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) |