Sha256: a7dc0e9a6bbe62541fa45e9915e7f13d3441a4554230f2b2415cb9bbaa3211b9

Contents?: true

Size: 802 Bytes

Versions: 16

Compression:

Stored size: 802 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" style="height: 260px; line-height: 260px; margin-bottom: 20px;">Loading...</div>
    <script>
      new Chartkick.PieChart("chart-1", <%= json_escape(@connections_by_database.to_json).html_safe %>);
    </script>

    <h3>By User</h3>

    <div id="chart-2" class="chart" style="height: 260px; line-height: 260px; margin-bottom: 20px;">Loading...</div>
    <script>
      new Chartkick.PieChart("chart-2", <%= json_escape(@connections_by_user.to_json).html_safe %>);
    </script>

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pghero-2.4.1 app/views/pg_hero/home/connections.html.erb
pghero-2.4.0 app/views/pg_hero/home/connections.html.erb
pghero-2.3.0 app/views/pg_hero/home/connections.html.erb
pghero-2.2.1 app/views/pg_hero/home/connections.html.erb
pghero-2.2.0 app/views/pg_hero/home/connections.html.erb
pghero-2.1.1 app/views/pg_hero/home/connections.html.erb
pghero-2.1.0 app/views/pg_hero/home/connections.html.erb
pghero-2.0.8 app/views/pg_hero/home/connections.html.erb
pghero-2.0.7 app/views/pg_hero/home/connections.html.erb
pghero-2.0.6 app/views/pg_hero/home/connections.html.erb
pghero-2.0.5 app/views/pg_hero/home/connections.html.erb
pghero-2.0.4 app/views/pg_hero/home/connections.html.erb
pghero-2.0.3 app/views/pg_hero/home/connections.html.erb
pghero-2.0.2 app/views/pg_hero/home/connections.html.erb
pghero-2.0.1 app/views/pg_hero/home/connections.html.erb
pghero-2.0.0 app/views/pg_hero/home/connections.html.erb