Most Active Machine Last <%= distance_of_time_in_words DateTime.now, @mac_time_start_date %>: "> <%= @most_active_mac.user.name unless @most_active_mac.user.blank? %> <%= "("+@most_active_mac.note+")" unless @most_active_mac.note.blank? %> - <%= (@most_active.last[:time] / 1.hour).round %> hrs
Runner Up: "> <%= @runner_up_mac.user.name unless @runner_up_mac.user.blank? %> <%= "("+@runner_up_mac.note+")" unless @runner_up_mac.note.blank? %> - <%= (@runner_up.last[:time] / 1.hour).round %> hrs

What machines are on our network?

<%= link_to "New MAC registration", new_mac_path if can? :create, Mac %> <% if can? :read_details, Mac %> <% end %> <% if can? :manage, Mac %>

All MACs

<% @all_macs.each do |mac| %> > <% end %>
<%= mac.mac.downcase %> <%= mac.user.name unless mac.user.blank? %> <%= "("+mac.note+")" unless mac.note.blank? %> <%= if mac.active? then raw("Here") else "Gone" end %> <%= ((Time.now - mac.since) / 1.hour).round(1).to_s+" hours" unless mac.since.blank? %> <%= link_to 'Edit', edit_mac_path(mac) %>
<% end %>