Sha256: 6f743d04cb6854ea0058f626f7c1976b0c8d50cb9e03d9a291604f526821ae38

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

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

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

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

      <div class="table-responsive text-nowrap">
        <table class="table table-hover table-bordered table-striped">
          <thead>
            <tr>
              <th class="sort-handle text-center" scope="col">&nbsp;</th>
              <% @collection.fields.map(&:label)[0, 4].each.with_index do |field, index| %>
                <% cell_display = index > 1 ? "d-md-table-cell" : "d-table-cell" %>
                <th scope="col" class="d-none <%= cell_display %>"><%= field %></th>
              <% end %>
              <th scope="col" class="d-none d-lg-table-cell"><%= Archangel.t(:published_at) %></th>
              <th class="actions text-right" scope="col"><%= Archangel.t(:actions) %></th>
            </tr>
          </thead>

          <tbody id="sortable" data-sortable-url="<%= sort_backend_collection_entries_path(@collection) %>">
            <%= render partial: "entry", collection: @entries[0, 4],
                                         locals: { fields: @collection.fields.map(&:slug)[0, 4] } %>
          </tbody>
        </table>
      </div>

      <%= paginate @entries %>

    <% else %>

      <p class="no-resources">
        <%= Archangel.t(:no_resources, resources: @entries.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/entries/index.html.erb