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 %> |
Name | Account Created | Member Level | Payment | Card | |
---|---|---|---|---|---|
<%= link_to user.name, user %> | <%= distance_of_time_in_words DateTime.now, user.created_at %> ago | <%= user.member_level_string %> | <% if user.payments.present? %> <% last_payment = user.payments.maximum(:date) %> <% if Date.today-last_payment > 90 %> <% else %> <% end %> <%= distance_of_time_in_words(Date.today, user.payments.maximum(:date))+" ago" %> <% else %> × <% end %> | <% if user.cards.present? %> ✓ <% else %> × <% 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 |
Name | Member Level | Account Created | |
---|---|---|---|
<%= link_to user.name, user %> | <%= user.member_level_string %> | <%= distance_of_time_in_words DateTime.now, user.created_at %> ago |