Sha256: 8c85483be6c687ad2f7f23dcea6516924ec1126d7d1bd44a36d832a3cb6255e3

Contents?: true

Size: 1.18 KB

Versions: 46

Compression:

Stored size: 1.18 KB

Contents

<h2><%= t :'.header' %></h2>

<% unless @recent_reindexing.empty? %>
  <table class="table table-striped">
  <thead>
    <tr class="d-flex">
      <th class="col-3"><%= t :'.field.date' %></th>
      <th class="col-3"><%= t :'.field.user' %></th>
      <th class="col-1"><%= t :'.field.items_reindexed_count' %></th>
      <th class="col-3"><%= t :'.field.duration' %></th>
      <th class="col-2"><%= t :'.field.job_status' %></th>
    </tr>
  </thead>
  <tbody>
    <% @recent_reindexing.each do |tracker| %>
      <tr class="d-flex">
        <td class="col-3"><%= l tracker.created_at, format: :long %></td>
        <td class="col-3"><%= tracker.user.email if tracker.user %></td>
        <td class="col-1"><%= tracker.progress %></td>
        <td class="col-3"><%= distance_of_time_in_words tracker.created_at, tracker.updated_at, include_seconds: true if tracker.completed? || tracker.failed? %></td>
        <td class="col-2"><%= link_to_if can?(:read, tracker), t("spotlight.job_trackers.status.#{tracker.status}"), [current_exhibit, tracker], data: { blacklight_modal: 'trigger' } %></td>
      </tr>
    <% end %>
  </tbody>
  </table>
<% else %>
  <p><%= t(:'.no_reindexing_activity') %></p>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.3.5 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.3.4 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.3.3 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.3.2 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.3.1 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.3.0 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.2.0 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.1.2 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.1.1 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.1.0 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.0.3 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.0.2 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.0.1 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-4.0.0 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-3.6.0.beta10 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-3.6.0.beta9 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-3.6.0.beta8 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-3.5.0.4 app/views/spotlight/dashboards/_reindexing_activity.html.erb
blacklight-spotlight-3.6.0.beta7 app/views/spotlight/dashboards/_reindexing_activity.html.erb