engine/app/views/good_job/jobs/index.html.erb in good_job-2.4.2 vs engine/app/views/good_job/jobs/index.html.erb in good_job-2.5.0
- old
+ new
@@ -2,6 +2,19 @@
<%= render 'good_job/shared/chart', chart_data: @filter.chart_data %>
</div>
<%= render 'good_job/shared/filter', filter: @filter %>
-<%= render 'good_job/shared/jobs_table', jobs: @filter.records %>
+<% if @filter.records.present? %>
+ <%= render 'good_job/shared/jobs_table', jobs: @filter.records %>
+ <nav aria-label="Job pagination" class="mt-3">
+ <ul class="pagination">
+ <li class="page-item">
+ <%= link_to(@filter.to_params(after_scheduled_at: (@filter.last.scheduled_at || @filter.last.created_at), after_id: @filter.last.id), class: "page-link") do %>
+ Older jobs <span aria-hidden="true">»</span>
+ <% end %>
+ </li>
+ </ul>
+ </nav>
+<% else %>
+ <em>No jobs present.</em>
+<% end %>