<% queries.each do |query| %> <% end %>
Pid State Source Waiting Duration
<%= query["pid"] %> <%= query["state"] %> <%= query["source"] %> <%= query["waiting"] == "t" ? "true" : "false" %> <%= query["started_at"] ? time_ago_in_words(query["started_at"], include_seconds: true) : nil %> <%= button_to "Kill", kill_path(pid: query["pid"]), class: "btn btn-info" %>
<%= query["query"] %>