Sha256: 3e4806dfb713875cbdc77373b100ae8912254a09f9fd415e1b7b3e9f496e271e

Contents?: true

Size: 758 Bytes

Versions: 9

Compression:

Stored size: 758 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><time datetime="<%= log.created_at.to_formatted_s(:iso8601) %>"><%= log.created_at.to_formatted_s('%-d %B %Y') %></time></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

9 entries across 9 versions & 1 rubygems

Version Path
quo_vadis-2.2.4 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.2.2 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.2.1 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.2.0 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.11 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.10 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.9 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.8 app/views/quo_vadis/logs/index.html.erb
quo_vadis-2.1.7 app/views/quo_vadis/logs/index.html.erb