Sha256: 5bfab9eb15e596c5c82950bceaf073ebfc68f1ee538fed267956ca7f8ad2def0

Contents?: true

Size: 773 Bytes

Versions: 24

Compression:

Stored size: 773 Bytes

Contents

<div class="content">
  <% if @query_stats_enabled %>
    <%= button_to "Reset", reset_query_stats_path, class: "btn btn-danger", style: "float: right;" %>
  <% end %>

  <h1 style="float: left;">Queries</h1>

  <% if @historical_query_stats_enabled %>
    <%= render partial: "query_stats_slider" %>
  <% end %>

  <% if @query_stats_enabled %>
    <% if @error %>
      <div class="alert alert-danger">Cannot understand start or end time.</div>
    <% elsif @query_stats.any? || @historical_query_stats_enabled %>
      <%= render partial: "queries_table", locals: {queries: @query_stats, sort_headers: true} %>
    <% else %>
      <p>Stats are not available yet. Come back soon!</p>
    <% end %>
  <% else %>
    <p>Query stats are not enabled.</p>
  <% end %>
</div>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pghero-1.1.4 app/views/pg_hero/home/queries.html.erb
pghero-1.1.3 app/views/pg_hero/home/queries.html.erb
pghero-1.1.2 app/views/pg_hero/home/queries.html.erb
pghero-1.1.1 app/views/pg_hero/home/queries.html.erb