From ae4341e7e440d0722be919c50fa15a8e454bb362 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Tue, 11 Aug 2009 07:04:42 +0000 Subject: Splitting up the code for readebility (no change in functionallity) --- openvpn-listconfigs-html.lsp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openvpn-listconfigs-html.lsp b/openvpn-listconfigs-html.lsp index 1191c67..3b8cfc9 100644 --- a/openvpn-listconfigs-html.lsp +++ b/openvpn-listconfigs-html.lsp @@ -32,7 +32,13 @@ end %> <%= html.html_escape(string.gsub(config.name, "^.*/", "")) %> ><%= html.html_escape(config.type) %> <%= html.html_escape(config.status) %> - <% if ( config.type == "server" ) then %><% if ( config.clients > 0 ) then %><%= html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/statusinfo?name=" .. config.name, label = config.clients } %><% else %><%= html.html_escape(config.clients) %><% end %><% end %>  + <% if ( config.type == "server" ) then %> + <% if ( config.clients > 0 ) then %> + <%= html.link{value = page_info.script .. page_info.prefix .. page_info.controller .. "/statusinfo?name=" .. config.name, label = config.clients } %> + <% else %> + <%= html.html_escape(config.clients) %> + <% end %> + <% end %>  <% if config.errtxt then %> <%= html.html_escape(config.errtxt) %> -- cgit v1.2.3