<h1>Listing users</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Recent Activity</th>
    <% if current_user.system_admin? %>
      <th>Status</th>
      <th>System Admin</th>
      <th></th>
      <th></th>
    <% end %>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= link_to user.name, user %></td>
    <td><%= user.email %></td>
    <td><%= recent_activity(user.last_sign_in_at) %></td>
    <% if current_user.system_admin? %>
      <td><%= user.status %></td>
      <td><%= user.system_admin? %></td>
      <td><%= link_to 'Edit', edit_user_path(user) %></td>
      <td>
        <% unless current_user == user %>
          <%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %>
        <% end %>
      </td>
    <% end %>
  </tr>
<% end %>
</table>

<h1>Listing users</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Recent Activity</th>
    <% if current_user.system_admin? %>
      <th>Status</th>
      <th>System Admin</th>
      <th></th>
      <th></th>
    <% end %>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= link_to user.name, user %></td>
    <td><%= user.email %></td>
    <td><%= recent_activity(user.current_sign_in_at) %></td>
    <% if current_user.system_admin? %>
      <td><%= user.status %></td>
      <td><%= user.system_admin? %></td>
      <td><%= link_to 'Edit', edit_user_path(user) %></td>
      <td>
        <% unless current_user == user %>
          <%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %>
        <% end %>
      </td>
    <% end %>
  </tr>
<% end %>
</table>

Use current_sign_in_at instead of last_sign_in_at.
Use current_sign_in_at instead of last_sign_in_at.
