Sha256: 4496ddaf53684866bbac4c7bf7e3cc5b42ef1ce7a3927053161ac9d141f0c065

Contents?: true

Size: 1.41 KB

Versions: 2

Compression:

Stored size: 1.41 KB

Contents

<div class="card card-default">
  <div class="card-body">
    <h2><%= fa_icon("folder-open") %> <%= Archangel.t(:index_resource, resource: @collections.model_name.human.titleize) %></h2>
  </div>
</div>

<div class="container-fluid">
  <div class="row">
    <div class="col-lg-12">
      <div class="card pages-index">
        <div class="card-header">
          <%= render "buttons" %>
        </div>

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

            <%= paginate @collections %>

            <div class="table-responsive">
              <table class="table table-hover table-bordered table-striped">
                <thead>
                  <tr>
                    <th scope="col"><%= Archangel.t(:name) %></th>
                    <th scope="col"><%= Archangel.t(:slug) %></th>
                    <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
                  </tr>
                </thead>

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

            <%= paginate @collections %>

          <% else %>

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/archangel/backend/collections/index.html.erb
archangel-0.0.8 app/views/archangel/backend/collections/index.html.erb