<%= query["pid"] %> |
<%= number_with_delimiter(query["duration_ms"].to_f.round) %> ms |
<%= query["state"] %> |
<% button_path, button_options = Rails.version >= "4.1" ? [explain_path, {params: {query: query["query"]}}] : [explain_path(query: query["query"]), {}] %>
<%= button_to "Explain", button_path, button_options.merge(form: {target: "_blank"}, class: "btn btn-info") %>
<%= button_to "Kill", kill_path(pid: query["pid"]), class: "btn btn-danger" %>
|