summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-08-11 07:04:42 +0000
committerMika Havela <mika.havela@gmail.com>2009-08-11 07:04:42 +0000
commitae4341e7e440d0722be919c50fa15a8e454bb362 (patch)
tree92110044458457a6c6bc4098506f4b7507bce2dc
parentf51e44a552e309ffe942a14eef172bc03a7023dd (diff)
downloadacf-openvpn-ae4341e7e440d0722be919c50fa15a8e454bb362.tar.bz2
acf-openvpn-ae4341e7e440d0722be919c50fa15a8e454bb362.tar.xz
Splitting up the code for readebility (no change in functionallity)
-rw-r--r--openvpn-listconfigs-html.lsp8
1 files changed, 7 insertions, 1 deletions
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 %>
<TD><%= html.html_escape(string.gsub(config.name, "^.*/", "")) %></TD>
<TD <% if config.errtxt then io.write('class="error"') end %>><%= html.html_escape(config.type) %></TD>
<TD><%= html.html_escape(config.status) %></TD>
- <TD><% 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 %>&nbsp;</TD>
+ <TD><% 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 %>&nbsp;</TD>
</TR>
<% if config.errtxt then %>
<TR class="error"><TD colspan=5><%= html.html_escape(config.errtxt) %></TD></TR>