Sha256: e7e5ce7df1f853e538bd4e1bcdf98ce8822f6938052ff2c95b33dffca699ece7

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

<div class="card card-default sticky-title rounded-0">
  <div class="card-body">
    <h2><%= Archangel.t(:index_resource, resource: @users.model_name.human.titleize) %></h2>
  </div>
</div>

<div class="card users-index">
  <div class="card-header">
    <%= render "buttons" %>
  </div>

  <div class="card-body">
    <% if @users.present? %>

      <div class="table-responsive text-nowrap">
        <table class="table table-hover table-bordered table-striped">
          <thead>
            <tr>
              <th scope="col" class="text-center d-none d-sm-table-cell"><%= Archangel.t(:avatar) %></th>
              <th scope="col"><%= Archangel.t(:name) %></th>
              <th scope="col" class="d-none d-md-table-cell"><%= Archangel.t(:username) %></th>
              <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
            </tr>
          </thead>

          <tbody>
            <%= render partial: "user", collection: @users %>
          </tbody>
        </table>
      </div>

      <%= paginate @users %>

    <% else %>

      <p class="no-resources">
        <%= Archangel.t(:no_resources, resources: @users.model_name.human.pluralize.downcase) %>
      </p>

    <% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/views/archangel/backend/users/index.html.erb