28 lines
758 B
Plaintext
28 lines
758 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>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% ip_addresses.each do |ip| %>
|
||
|
<tr>
|
||
|
<td><%= ip.address %></td>
|
||
|
<td><%= ip.dns_name %></td>
|
||
|
<td><%= ip.comment %></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>
|