Sha256: 41f1bb56f0ca91129f3856ccc75bd2a2232f0e2c251050025c29bceada1685ea

Contents?: true

Size: 659 Bytes

Versions: 7

Compression:

Stored size: 659 Bytes

Contents

<h1>Logs</h1>

<table>
  <thead>
    <tr>
      <th>Timestamp</th>
      <th>Action</th>
      <th>IP</th>
      <th>Metadata</th>
    </tr>
  </thead>
  <tbody>
    <% @logs.each do |log| %>
      <tr>
        <td><%= log.created_at %></td>
        <td><%= QuoVadis.translate "log.action.#{log.action}" %></td>
        <td><%= log.ip %></td>
        <td><%= log.metadata.empty? ? '' : log.metadata.map {|k,v| "#{k}: #{v}"}.join(', ') %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<% if @prev_page %>
  <%= link_to 'Newer', logs_path(page: @prev_page) %>
<% end %>

<% if @next_page %>
  <%= link_to 'Older', logs_path(page: @next_page) %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
quo_vadis-2.1.6 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.5 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.4 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.3 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.2 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.1 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.0 test/dummy/app/views/quo_vadis/logs/index.html.erb