<% connected = database.connection %> <% if connected %>
<% summary = database.summary %>
<% number = summary.select { |row| row['list'] == 'users' }.first['items'] %> <%= pluralize(number, 'user') %>
<% number = summary.select { |row| row['list'] == 'databases' }.first['items'].to_i - 1 %> <%= pluralize(number, 'database') %>
<% number = summary.select { |row| row['list'] == 'pools' }.first['items'].to_i - 1 %> <%= pluralize(number, 'pool') %>
<% end %>