2013-02-01 03:48:27 +00:00
|
|
|
<p>
|
|
|
|
<b>User:</b>
|
|
|
|
<%= @mac.user.name unless @mac.user.blank? %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2013-09-24 01:34:18 +00:00
|
|
|
<b>MAC:</b>
|
2013-02-01 03:48:27 +00:00
|
|
|
<%= @mac.mac %>
|
|
|
|
</p>
|
|
|
|
|
2013-02-01 05:39:33 +00: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 11:57:46 +00: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-02-01 03:48:27 +00:00
|
|
|
<%= link_to 'Edit', edit_mac_path(@mac) %> |
|
|
|
|
<%= link_to 'Back', macs_path %>
|