2013-01-31 20:48:27 -07:00
|
|
|
<p>
|
|
|
|
<b>User:</b>
|
|
|
|
<%= @mac.user.name unless @mac.user.blank? %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2013-09-23 18:34:18 -07:00
|
|
|
<b>MAC:</b>
|
2013-01-31 20:48:27 -07:00
|
|
|
<%= @mac.mac %>
|
|
|
|
</p>
|
|
|
|
|
2013-01-31 22:39:33 -07:00
|
|
|
<p>
|
|
|
|
<b>Note:</b>
|
|
|
|
<%= @mac.note %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Hidden:</b>
|
|
|
|
<%= @mac.hidden %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>IP:</b>
|
|
|
|
<%= @mac.ip %>
|
|
|
|
</p>
|
|
|
|
|
2013-10-02 04:57:46 -07:00
|
|
|
<% if can? :read, MacLog %>
|
|
|
|
<p>
|
|
|
|
<b>Recent Log Entries:</b>
|
|
|
|
<ul>
|
|
|
|
<% @mac_logs.each do |log| %>
|
|
|
|
<li><%= log.created_at %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
2013-01-31 20:48:27 -07:00
|
|
|
<%= link_to 'Edit', edit_mac_path(@mac) %> |
|
|
|
|
<%= link_to 'Back', macs_path %>
|