Packages
ex_debug_toolbar
0.4.5
A debug web toolbar for Phoenix projects to display all sorts of information about request
Current section
Files
Jump to
Current section
Files
web/templates/toolbar/show/ecto/_queries.html.eex
<table class="table table-hover table-condensed table-bordered">
<caption><%= @caption %></caption>
<thead>
<th> Total</th>
<th> Queue</th>
<th> Query</th>
<th> Decode</thecto>
<th> Table </th>
<th> Query </th>
<td></td>
</thead>
<tbody>
<%= for {query, total_time, _} <- @queries do %>
<tr class="<%= ecto_color_class(total_time) %>">
<td class="col-lg-1"><%= total_time |> native_time_to_string %></td>
<td class="col-lg-1"><%= query.queue_time |> native_time_to_string %></td>
<td class="col-lg-1"><%= query.query_time |> native_time_to_string %></td>
<td class="col-lg-1"><%= query.decode_time |> native_time_to_string %></td>
<td class="col-lg-1"><%= query.source %></td>
<td class="col-lg-5"> <span class="code language-sql"><%= query.query %></span></td>
<td class="col-lg-1">
<i
class="glyphicon glyphicon-info-sign pointer"
data-toggle="popover"
title="Params"
data-content="<%= inspect(query.params) %>"
data-placement="top"
data-trigger="hover"
></i>
</td>
</tr>
<% end %>
</tbody>
</table>