From 2b91ec333e5d2f421e6d9a372c3bb18c7fee658b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 29 Sep 2014 14:58:27 +0000 Subject: Display message in HTML views if no files found --- freeradius3-listmacauthfiles-html.lsp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'freeradius3-listmacauthfiles-html.lsp') diff --git a/freeradius3-listmacauthfiles-html.lsp b/freeradius3-listmacauthfiles-html.lsp index b9972f9..01b230f 100644 --- a/freeradius3-listmacauthfiles-html.lsp +++ b/freeradius3-listmacauthfiles-html.lsp @@ -24,6 +24,7 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"editmacauthfile"}, session) %> <% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="MAC Authentication Configuration"}), page_info) %> +<% if #view.value>0 then %> @@ -48,4 +49,7 @@ html = require("acf.html") <% end %>
Action
+<% else %> +

No files found

+<% end %> <% htmlviewfunctions.displaysectionend(header_level) %> -- cgit v1.2.3