Updating how macs are stored/viewed

This commit is contained in:
2013-02-09 02:08:29 -07:00
parent 1b64a6b931
commit d156edd683
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ Rails.logger.info mac.inspect %>
<li>
<span title="<%= mac.mac if user_signed_in? %><%= " - "+mac.ip.to_s if can? :read_details, mac %><%= " - "+((Time.now - mac.since) / 1.hour).round(1).to_s+" hours" if can? :manage, mac %>">
<%= mac.user.name unless mac.user.blank? %>
<%= mac.mac if mac.user.blank? %>
<%= "("+mac.note+")" unless mac.note.blank? %></span>
<%= link_to ' Edit', edit_mac_path(mac) if can? :update, mac %> <br/>
</li>