lib/rack/insight/views/panels/mongo.html.erb
<h3>Mongo Usage</h3>
<table id="mongo_usage">
<tr>
<th>Total Calls</th>
<td><%= stats.calls %></td>
<th>Total Time</th>
<td><%= stats.display_time %></td>
</tr>
</table>
<% if stats.queries.any? %>
<h3>Breakdown</h3>
<table id="mongo_breakdown">
<thead>
<tr>
<th>Time (ms)</th>
<th>Command</th>
</tr>
</thead>
<tbody>
<% i = 1 %>
<% stats.queries.each do |query| %>
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
<td><%= query.display_time %></td>
<td><%= query.command %></td>
</tr>
<% i += 1 %>
<% end %>
</tbody>
</table>
<% end %>