Sha256: 161d2da04157028fce6fdeeea41b9297c12ba28a3b1462233c470b2eb6510377
Contents?: true
Size: 1.18 KB
Versions: 9
Compression:
Stored size: 1.18 KB
Contents
<table class="table queries"> <thead> <tr> <th style="width: 25%;">Pid</th> <th style="width: 25%;">Duration</th> <th style="width: 25%;">State</th> <th style="width: 25%;"></th> </tr> </thead> <tbody> <% queries.reverse.each do |query| %> <tr> <td><%= query[:pid] %></td> <td><%= number_with_delimiter(query[:duration_ms].round) %> ms</td> <td><%= query[:state] %></td> <td class="text-right"> <% 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" %> </td> </tr> <tr> <td colspan="6" style="border-top: none; padding: 0;"> <%= query[:source] %> <span class="text-muted"><%= query[:user] %></span> <pre style="margin-top: 1em;"><code><%= query[:query] %></code></pre> </td> </tr> <% end %> </tbody> </table> <script> highlightQueries(); </script>
Version data entries
9 entries across 9 versions & 1 rubygems