raven/views/ip/ip-tracker.erb

32 lines
922 B
Plaintext

<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>
<th>Actions</th>
</tr>
</thead>
<tbody>
<% ip_addresses.each do |ip| %>
<tr>
<td><%= ip.address %></td>
<td><%= ip.dns_name %></td>
<td><%= ip.comment %></td>
<td>
<a href="/ip-tracker/delete/<%= ip.id %>"><i class="fa-solid fa-trash"></i></a>
</td>
</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>