<%= t "good_job.models.batch.name" %>
<%= t "good_job.models.batch.created" %>
<%= t "good_job.models.batch.enqueued" %>
<%= t "good_job.models.batch.discarded" %>
<%= t "good_job.models.batch.finished" %>
<%= t "good_job.models.batch.jobs" %>
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button", data: { bs_toggle: "collapse", bs_target: ".batch-properties" }, aria: { expanded: false, controls: batches.map { |batch| "##{dom_id(batch, 'params')}" }.join(" ") } do %> <%= render_icon "info" %> <%= t "good_job.actions.inspect" %> <% end %>
<% if batches.present? %> <% batches.each do |batch| %>
<%= link_to batch_path(batch), class: "text-decoration-none" do %> <%= batch.id %>
<%= batch.on_finish %>
<%= batch.description %>
<% end %>
<%= t "good_job.models.batch.created_at" %>
<%= relative_time(batch.created_at) %>
<% if batch.enqueued_at %>
<%= t "good_job.models.batch.enqueued_at" %>
<%= relative_time(batch.enqueued_at) %> <% end %>
<% if batch.discarded_at %>
<%= t "good_job.models.batch.discarded_at" %>
<%= relative_time(batch.discarded_at) %> <% end %>
<% if batch.finished_at %>
<%= t "good_job.models.batch.finished_at" %>
<%= relative_time(batch.finished_at) %> <% end %>
<%= t "good_job.models.batch.jobs" %>
<%= batch.jobs.count %>
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button", title: t("good_job.actions.inspect"), data: { bs_toggle: "collapse", bs_target: "##{dom_id(batch, 'properties')}" }, aria: { expanded: false, controls: dom_id(batch, "state") } do %> <%= render_icon "info" %> <%= t "good_job.actions.inspect" %> <% end %>
<%= tag.div id: dom_id(batch, "properties"), class: "batch-properties list-group-item collapse small bg-dark text-light" do %> <%= tag.pre JSON.pretty_generate(batch.properties) %> <% end %> <% end %> <% else %>
<%= t ".no_batches_found" %>
<% end %>