<% logs.each do |log| %> <% end %>
Time Name Level Message
<% unless log['time'].blank? %> <%= DateTime.strptime(log['time'].to_s, '%Q').strftime('%Y-%m-%d %H:%M:%S') %> <% end %> <%= log['name'] %> <% if log['level'] == 'ERROR' %> <%= log['level'] %> <% elsif log['level'] == 'WARNING' %> <%= log['level'] %> <% else %> <%= log['level'] %> <% end %>
<%= log['message'] %>
<%= javascript_tag do %> $(document).ready(function() { $('#logs-table').dataTable({ "dom": "<'row'r>t<'row'<'col-md-6'i><'col-md-6'p>>", "pagingType": "full_numbers", "pageLength": 50, "ordering": false }); }); <% end %>