Most Active Card Last Month: <%= @most_active_card.user.name unless @most_active_card.user.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> days)
<% unless @runner_up_card.blank? || @runner_up_card.user.blank? %> Runner Up: <%= @runner_up_card.user.name %> (<%= @runner_up_card.accesses_this_week %> days) <% end %>
User | Note | DB ID | Card # | Access? | Days Accessed Last Month | |||
---|---|---|---|---|---|---|---|---|
<% if card.user.nil? %> n/a <% else %> <%= raw(card.user.member_status_symbol) %> <%= link_to card.user.name , card %> <% end %> | <%= card.name %> | <%= card.id %> | <%= card.card_number %> | <%= if card.card_permissions == 1 then "Access" end %> | <%= card.accesses_this_week unless card.accesses_this_week < 1 %> | <%= link_to 'Upload', upload_path(card) if can? :upload, card %> | <%= link_to 'Edit', edit_card_path(card) if can? :update, card %> | <%= link_to 'Destroy', card, :confirm => 'Are you sure? WARNING: THIS DOES NOT REMOVE THE CARD FROM THE DOOR SYSTEM! DISABLE AND UPLOAD IT FIRST.', :method => :delete if can? :destroy, card %> |