Increasing visible detail of mac log

This commit is contained in:
2014-06-24 12:20:17 -07:00
parent 3a028ca7fc
commit 1d6699ae9f
3 changed files with 36 additions and 3 deletions

View File

@@ -33,10 +33,11 @@
@active_macs.each do |mac|
Rails.logger.info mac.inspect %>
<li>
<%= link_to mac do %>
<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>
<%= "("+mac.note+")" unless mac.note.blank? %></span><% end %> &nbsp;
<%= link_to ' Edit', edit_mac_path(mac) if can? :update, mac %> <br/>
</li>
<% end %>