Sha256: b6c3fdc62da8daaebf79c71ef68d518160c7f4a722557d98a75da8454ae9d760

Contents?: true

Size: 778 Bytes

Versions: 5

Compression:

Stored size: 778 Bytes

Contents

<% if analytic_table[:data].count > 0 %>
  <table>
    <tr>
      <% analytic_table[:headers][:key].each do |header| %>
        <th><%=h header%></th>
      <% end %>
      <% analytic_table[:headers][:value].each do |header| %>
        <th><%=h header%></th>
      <% end %>
    </tr>
    <% analytic_table[:data].each do |analytic_data| %>
      <tr>
        <% analytic_table[:headers][:key].each do |header| %>
          <td><%=h analytic_data['_id'][header].try(:to_i) %></td>
        <% end %>
        <% analytic_table[:headers][:value].each do |header| %>
          <td><%=h analytic_data['value'][header].try(:to_i) %></td>
        <% end %>
      </tr>
    <% end %>
  </table>
<% else %>
  <div class="pale pal txtC">No data found, try another filter</div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongodb_logger-0.2.4 lib/mongodb_logger/server/views/shared/_analytic_table.erb
mongodb_logger-0.2.3 lib/mongodb_logger/server/views/shared/_analytic_table.erb
mongodb_logger-0.2.2 lib/mongodb_logger/server/views/shared/_analytic_table.erb
mongodb_logger-0.2.1 lib/mongodb_logger/server/views/shared/_analytic_table.erb
mongodb_logger-0.2.0 lib/mongodb_logger/server/views/shared/_analytic_table.erb