<div class="well">
  <table class="table table-responsive table-hover sortable">
    <thead>
    <tr>
      <th>User Email</th>
      <th>Last Login</th>
      <th>Associated Organisation</th>
      <th>Pending Organisation</th>
      <th> </th>
    </tr>
    </thead>
    <% @users.each do |user| %>
        <tr id="<%= user.id %>" class="actions-right">
          <td><%= user.email %></td>
          <td><%= time_ago_in_words_with_nils(user.last_sign_in_at) %> </td>
          <td><%= user.organisation.name if user.organisation %></td>
          <td>
            <% if user.pending_organisation %>
                <%= user.pending_organisation.name %>
            <% end %>
          </td>
          <td>
            <%= link_to(user_reports_path(id: user.id), :method => :delete, :class => "btn btn-small btn-danger pull-right") do %>
                <i class="icon-trash icon-large"></i> Delete</a>
            <% end %>
            <% if user.pending_organisation %>
                <%= link_to(user_report_path(id: user.id), :method => :put, :class => "btn btn-small btn-success pull-right") do %>
                    <i class="icon-thumbs-up-alt icon-large"></i> Approve</a>
                <% end %>
            <% end %>
          </td>
        </tr>
    <% end %>
  </table>
</div>
<div class="well">
  <table class="table table-responsive table-hover sortable">
    <thead>
    <tr>
      <th>User Email</th>
      <th>Deleted </th>
      <th>Associated Organisation</th>
      <th>Pending Organisation</th>
      <th> </th>
    </tr>
    </thead>
    <% @users.each do |user| %>
        <tr id="<%= user.id %>" class="actions-right">
          <td><%= user.email %></td>
          <td><%= time_ago_in_words_with_nils(user.deleted_at) %> </td>
          <td><%= user.organisation.name if user.organisation %></td>
          <td>
            <% if user.pending_organisation %>
                <%= user.pending_organisation.name %>
            <% end %>
          </td>
          <td>
            <%= link_to(nil, :method => :get, :class => "btn btn-small btn-danger pull-right") do %>
                <i class="fa fa-undo"></i> Restore User</a>
            <% end %>
          </td>
        </tr>
    <% end %>
  </table>
</div>
Revise listing page for deleted users
Revise listing page for deleted users
