app/views/arcadex/tokens/index.html.erb in arcadex-1.0.4 vs app/views/arcadex/tokens/index.html.erb in arcadex-1.1.0
- old
+ new
@@ -1,24 +1,30 @@
<h1>Listing tokens</h1>
<table>
<thead>
<tr>
- <th>Imageable_id</th>
- <th>Imageable_type</th>
- <th>Auth_token</th>
- <th></th>
- <th></th>
- <th></th>
+ <th>Imageable</th>
+ <th>Imageable type</th>
+ <th>Auth token</th>
+ <th>First ip address</th>
+ <th>Current ip address</th>
+ <th>Times used</th>
+ <th>Expiration minutes</th>
+ <th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @tokens.each do |token| %>
<tr>
<td><%= token.imageable_id %></td>
<td><%= token.imageable_type %></td>
<td><%= token.auth_token %></td>
+ <td><%= token.first_ip_address %></td>
+ <td><%= token.current_ip_address %></td>
+ <td><%= token.times_used %></td>
+ <td><%= token.expiration_minutes %></td>
<td><%= link_to 'Show', token %></td>
<td><%= link_to 'Edit', edit_token_path(token) %></td>
<td><%= link_to 'Destroy', token, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>