diff options
Diffstat (limited to 'templates/main.html.ep')
-rw-r--r-- | templates/main.html.ep | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/templates/main.html.ep b/templates/main.html.ep index f5cae1d..6f786dc 100644 --- a/templates/main.html.ep +++ b/templates/main.html.ep @@ -1,15 +1,31 @@ <div> + <h1> Active </h1> <table> <tr> <th>Hostname</th> <th>Load</th> <th>OS</th> </tr> - % for my $host (@{$hosts}) { + % for my $host (@{$active_hosts}) { <tr> <td><%= $host->{hostname} %></td> <td><%= $host->{load15} %></td> - <td>Debian <%= $host->{debian} %></td> + <td>Debian <%= $host->{debian_version} %></td> + </tr> + % } + </table> + <h1> Old </h1> + <table> + <tr> + <th>Hostname</th> + <th>Load</th> + <th>OS</th> + </tr> + % for my $host (@{$old_hosts}) { + <tr> + <td><%= $host->{hostname} %></td> + <td><%= $host->{load15} %></td> + <td>Debian <%= $host->{debian_version} %></td> </tr> % } </table> |