Sha256: 117f87ac01f26336f0e6144c725bb8e119b81a79259d09c351ccdae39e380b3b

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 KB

Contents

<%- @page_title= "GBL♦Admin - Documents" %>

<h1 style="width:100%; margin-bottom:2rem;">
  Documents
  <%= link_to '+ New Document', new_admin_document_path, {class: 'btn btn-primary float-right'} %>
</h1>

<div id="facets" class="row">
  <div class="col-4">
    <%= render "result_facets" %>
  </div>

  <div id="resultset" class="col-8">
    <p>
      <%= render "result_toggle" %>
      <%= render "result_selected_options" %>
      <%= render "result_pagination" %>
    </p>

    <hr/>

    <%= render "result_selection_options" %>

    <% if @documents.results.present? &&  @documents.results.kind_of?(Array) %>
      <ol id='results' class='list-unstyled' data-controller='results'>
        <% @documents.results.each_with_index do |document, index| %>
          <% doc = Document.find_by(friendlier_id: document['id']) %>
          <% if doc.present? %>
            <%= render "document", document: doc, index: index %>
          <% else %>
            <p><%= "#{index + 1}." %> Database is missing document <%= document['id'] %></p>
          <% end %>
        <% end %>
      </ol>


      <hr/>

      <p>
        <span class='float-right'>
          <%= previous_link(@documents.links) %>
          <%= next_link(@documents.links) %>
        </span>
      </p>
    <% end %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight_admin-0.3.2 app/views/admin/documents/index.html.erb
geoblacklight_admin-0.3.1 app/views/admin/documents/index.html.erb
geoblacklight_admin-0.3.0 app/views/admin/documents/index.html.erb
geoblacklight_admin-0.2.1 app/views/admin/documents/index.html.erb
geoblacklight_admin-0.1.0 app/views/admin/documents/index.html.erb