Sha256: 335aac19634ffddf702357714a489c6f1f2707475e0bc12ae5c502027ea48e2a

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

<%= content_for :data_controls do %>
  <%= render :partial => '/layouts/admin/search', :locals => {:search_path => admin_users_path} %>
  <%= link_to 'Roles', admin_roles_path, :class => 'btn btn-default admin-role-btn' %>
  <%= link_to "New User", new_admin_user_path, :class => "btn btn-primary admin-user-add-btn", :title => "New User" %>
<% end %>

<%= content_for :detail do %>
  <div class="table-responsive">
    <table class="table table-striped table-hover">
      <thead>
        <th>Name</th>
        <th>Email</th>
        <th>Last Login</th>
        <th>&nbsp;</th>
      </thead>
      <tbody>
        <% cache [:admin, @spud_users] do %>
          <% @spud_users.each do |spud_user| %>
            <tr>
              <td><%= spud_user.full_name %></td>
              <td><%= mail_to spud_user.email %></td>
              <td><%= timestamp(spud_user.last_login_at) %></td>
              <td class="table-actions">
                <%= link_to 'Details', admin_user_path(spud_user), :class => 'btn btn-default btn-sm' %>
                <%= link_to 'Edit', edit_admin_user_path(spud_user), :class => 'btn btn-default btn-sm' %>
                <%= link_to 'Delete', admin_user_path(spud_user), :method => :delete, :data => {:confirm => 'Are you sure you want to delete this user?'}, :class => 'btn btn-danger btn-sm' %>
              </td>
            </tr>
          <% end %>
        <% end %>
      </tbody>
    </table>
  </div>

  <%= will_paginate @spud_users, :renderer => BootstrapPagination::Rails %>

  <script>
    $(document).ready(spud.admin.users.index);
  </script>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tb_core-1.3.7 app/views/admin/users/index.html.erb
tb_core-1.3.6 app/views/admin/users/index.html.erb
tb_core-1.3.5 app/views/admin/users/index.html.erb
tb_core-1.3.4 app/views/admin/users/index.html.erb
tb_core-1.3.3 app/views/admin/users/index.html.erb
tb_core-1.3.2 app/views/admin/users/index.html.erb
tb_core-1.3.1 app/views/admin/users/index.html.erb