2022-12-22 12:50:01 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<% if ip_addresses.length > 0 %>
|
|
|
|
<p><a href="/ip-tracker/add">Add new address</a></p>
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Address</th>
|
|
|
|
<th>DNS Name</th>
|
|
|
|
<th>Comments</th>
|
2022-12-22 13:08:35 -05:00
|
|
|
<th>Actions</th>
|
2022-12-22 12:50:01 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% ip_addresses.each do |ip| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= ip.address %></td>
|
|
|
|
<td><%= ip.dns_name %></td>
|
|
|
|
<td><%= ip.comment %></td>
|
2022-12-22 13:08:35 -05:00
|
|
|
<td>
|
|
|
|
<a href="/ip-tracker/delete/<%= ip.id %>"><i class="fa-solid fa-trash"></i></a>
|
|
|
|
</td>
|
2022-12-22 12:50:01 -05:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<% else %>
|
|
|
|
<p>There are no IP addresses to show at this time. Trying <a href="/ip-tracker/add">adding some</a>.</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|