Recent User Activity

New Users

<% if !@new_users.blank? %> <% @new_users.sort_by(&:created_at).reverse!.each do |user| %> <% end %> <% end %>
Name Member Level Account Created Waiver Orientation Payment
<%= link_to user.name, user %> <%= user.member_level_string %> <% if user.created_at.present? %> <%= distance_of_time_in_words(DateTime.now, user.created_at.to_date)+" ago" %> <% else %> × <% end %> <% if user.waiver.present? %> <%= distance_of_time_in_words(DateTime.now, user.waiver.to_date)+" ago" %> <% else %> × <% end %> <% if user.orientation.present? %> <%= distance_of_time_in_words(DateTime.now, user.orientation.to_date)+" ago" %> <% else %> × <% end %> <% if user.payments.present? %> <%= distance_of_time_in_words(Date.today, user.payments.maximum(:date))+" ago" %> <% else %> × <% end %>

Logins

<% if !@user_logins.blank? %> <% @user_logins.sort_by(&:current_sign_in_at).reverse!.each do |user| %> <% end %> <% end %>
Name Current Sign In Last Sign In Sign In Count Account Created
<%= link_to user.name, user %> <%= distance_of_time_in_words DateTime.now, user.current_sign_in_at %> ago <% if user.last_sign_in_at != user.current_sign_in_at %> <%= distance_of_time_in_words DateTime.now, user.last_sign_in_at %> ago <% end %> <%= user.sign_in_count %> times <%= distance_of_time_in_words DateTime.now, user.created_at %> ago