Open-Source-Access-Control-.../app/views/macs/show.html.erb

39 lines
486 B
Plaintext
Raw Normal View History

2013-02-01 03:48:27 +00:00
<p>
<b>User:</b>
<%= @mac.user.name unless @mac.user.blank? %>
</p>
<p>
<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 %>