vicvega/chaltron

View on GitHub
app/views/chaltron/logs/index.html.erb

Summary

Maintainability
Test Coverage
<div class='container-fluid'>
  <h3 class='pt-4'><%= t '.title' %></h3>
  <%= content_tag 'table', id: 'logs', class: 'table table-striped',
    data: {source: logs_path(format: :json)} do %>
    <thead>
      <tr>
        <th class='severity'>
          <%= Log.human_attribute_name(:severity) %>
        </th>
        <th class='timestamp'>
          <%= Log.human_attribute_name(:created_at) %>
        </th>
        <th class='message'>
          <%= Log.human_attribute_name(:message) %>
        </th>
        <th class='category'>
          <%= Log.human_attribute_name(:category) %>
        </th>
      </tr>
    </thead>
    <tbody>
    </tbody>
  <% end %>
</div>