Sha256: 7281d141b5989ad78a9d4090ab4937d75ebe77aba4ca5e8ab52a75517958d360

Contents?: true

Size: 929 Bytes

Versions: 8

Compression:

Stored size: 929 Bytes

Contents

<table class="table queries">
  <thead>
    <tr>
      <th style="width: 10%;">Pid</th>
      <th style="width: 10%;">State</th>
      <th>Source</th>
      <th style="width: 10%;">Waiting</th>
      <th style="width: 15%;">Duration</th>
      <th style="width: 10%;"></th>
    </tr>
  </thead>
  <tbody>
    <% queries.each do |query| %>
      <tr>
        <td><%= query["pid"] %></td>
        <td><%= query["state"] %></td>
        <td><%= query["source"] %></td>
        <td><%= query["waiting"] == "t" ? "true" : "false" %></td>
        <td><%= query["started_at"] ? time_ago_in_words(query["started_at"], include_seconds: true) : nil %></td>
        <td class="text-right"><%= button_to "Kill", kill_path(pid: query["pid"]), class: "btn btn-info" %></td>
      </tr>
      <tr>
        <td colspan="6" style="border-top: none; padding: 0;"><pre><%= query["query"] %></pre></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pghero-1.0.0 app/views/pg_hero/home/_live_queries_table.html.erb
pghero-0.1.10 app/views/pg_hero/home/_queries_table.html.erb
pghero-0.1.9 app/views/pg_hero/home/_queries_table.html.erb
pghero-0.1.8 app/views/pg_hero/home/_queries_table.html.erb
pghero-0.1.7 app/views/pg_hero/home/_queries_table.html.erb
pghero-0.1.6 app/views/pg_hero/home/_queries_table.html.erb
pghero-0.1.5 app/views/pg_hero/home/_queries_table.html.erb
pghero-0.1.4 app/views/pg_hero/home/_queries_table.html.erb