% provide(:title, @user.name) %>
<%= gravatar_for @user %>
<%= @user.name %>
<%= render 'users/user_details', user: @user %>
Login History
<% hist = @user.login_histories.order(created_at: :desc).limit(10).to_a %>
Date/Time |
IP Address |
Success |
Notes |
<% if hist && hist.count > 0 %>
<% hist.each do |rec| %>
<%= rec.created_at.in_time_zone.strftime("%Y-%m-%d %H:%M:%S") %> |
<%= rec.ip_address %> |
<%= check_if rec.successful %> |
<%= rec.message %> |
<% end %>
<% else %>
No History |
<% end %>