2014-06-24 19:20:17 +00:00
|
|
|
<style>
|
|
|
|
td { border-bottom: 1px solid #ccc; }
|
|
|
|
</style>
|
2013-02-01 07:06:13 +00:00
|
|
|
<table>
|
|
|
|
<% @mac_logs.each do |mac_log| %>
|
|
|
|
<tr>
|
2014-06-24 19:20:17 +00:00
|
|
|
<td>
|
|
|
|
<% if @macs[mac_log.mac].user_id.blank? %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to @macs[mac_log.mac].user.name, @macs[mac_log.mac].user %><br/>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<% if @macs[mac_log.mac].blank? %>
|
|
|
|
<%= mac_log.mac %>
|
|
|
|
<% else %>
|
|
|
|
<% if @macs[mac_log.mac].note.blank? %>
|
|
|
|
<%= link_to mac_log.mac, @macs[mac_log.mac] %><br/>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to @macs[mac_log.mac].note, @macs[mac_log.mac] %><br/>
|
|
|
|
<small><%= mac_log.mac %></small>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
2013-02-01 07:06:13 +00:00
|
|
|
<td><%= mac_log.ip %></td>
|
2014-06-24 19:20:17 +00:00
|
|
|
<td>
|
|
|
|
<% if mac_log.action == "activate" %>
|
|
|
|
<span style="background-color: green">
|
|
|
|
<% else %>
|
|
|
|
<span style="background-color: red">
|
|
|
|
<% end %>
|
|
|
|
<%= mac_log.action %>
|
|
|
|
</span>
|
|
|
|
</td>
|
2013-02-01 07:06:13 +00:00
|
|
|
<td><%= mac_log.created_at %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|