diff --git a/lib/openvpn-status-web/main.html.erb b/lib/openvpn-status-web/main.html.erb index a757231..e984e28 100644 --- a/lib/openvpn-status-web/main.html.erb +++ b/lib/openvpn-status-web/main.html.erb @@ -63,7 +63,7 @@ thead { <%= client[1] %> <%= client[2].to_i.as_bytes %> <%= client[3].to_i.as_bytes %> - <%= client[4] %> + <%= client[4].strftime('%-d.%-m.%Y %H:%M:%S') %> <% end %> @@ -80,12 +80,12 @@ thead { Last Ref -<% status.routing_table.each do |e| %> +<% status.routing_table.each do |route| %> - <%= e[0] %> - <%= e[1] %> - <%= e[2] %> - <%= e[3] %> + <%= route[0] %> + <%= route[1] %> + <%= route[2] %> + <%= route[3].strftime('%-d.%-m.%Y %H:%M:%S') %> <% end %> @@ -96,10 +96,10 @@ thead {
-<% status.global_stats.each do |e| %> +<% status.global_stats.each do |global| %> - - + + <% end %>
<%= e[0] %>:<%= e[1] %><%= global[0] %>:<%= global[1] %>