Sha256: 9c3118d39dd914f214364887656c16a5d63edfa033d0558fcaa24597f88396f3

Contents?: true

Size: 940 Bytes

Versions: 7

Compression:

Stored size: 940 Bytes

Contents

<div class="content">
  <h1>Connections</h1>

  <p><%= pluralize(@total_connections, "connection") %></p>

  <% if @total_connections > 0 %>
    <h3>By Database</h3>

    <div id="chart-1" class="chart pie-chart">Loading...</div>
    <script>
      new Chartkick.PieChart("chart-1", <%= pghero_js_value(@connections_by_database) %>);
    </script>

    <h3>By User</h3>

    <div id="chart-2" class="chart pie-chart">Loading...</div>
    <script>
      new Chartkick.PieChart("chart-2", <%= pghero_js_value(@connections_by_user) %>);
    </script>

    <% if @connections_by_ssl_status %>
      <h3>By Security</h3>

      <div id="chart-3" class="chart pie-chart">Loading...</div>
      <script>
        new Chartkick.PieChart("chart-3", <%= pghero_js_value(@connections_by_ssl_status) %>);
      </script>
    <% end %>

    <%= render partial: "connections_table", locals: {connection_sources: @connection_sources} %>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pghero-3.4.1 app/views/pg_hero/home/connections.html.erb
pghero-3.4.0 app/views/pg_hero/home/connections.html.erb
pghero-3.3.4 app/views/pg_hero/home/connections.html.erb
pghero-3.3.3 app/views/pg_hero/home/connections.html.erb
pghero-3.3.2 app/views/pg_hero/home/connections.html.erb
pghero-3.3.1 app/views/pg_hero/home/connections.html.erb
pghero-3.3.0 app/views/pg_hero/home/connections.html.erb