AlchemyCMS/alchemy-devise

View on GitHub
app/views/alchemy/admin/users/_table.html.erb

Summary

Maintainability
Test Coverage
<table class="list" id="user_list">
  <thead>
    <tr>
      <th class="icon"></th>
      <th class="login">
        <%= sort_link @query, :login, hide_indicator: true %>
      </th>
      <th class="name">
        <%= sort_link @query, :firstname, hide_indicator: true %>
      </th>
      <th>
        <%= sort_link @query, :lastname, hide_indicator: true %>
      </th>
      <th class="email">
        <%= sort_link @query, :email, hide_indicator: true %>
      </th>
      <th><%= Alchemy::User.human_attribute_name('language') %></th>
      <th>
        <%= sort_link @query, :last_sign_in_at, hide_indicator: true %>
      </th>
      <th class="role"><%= Alchemy::User.human_attribute_name('roles') %></th>
      <th class="tools"></th>
    </tr>
  </thead>
  <tbody>
    <%= render partial: "user", collection: @users %>
  </tbody>
</table>