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 %>