Name
Created
Enqueued
Discarded
Finished
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" %> 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 %>
<%= relative_time(batch.created_at) %>
<%= relative_time(batch.enqueued_at) if batch.enqueued_at %>
<%= relative_time(batch.discarded_at) if batch.discarded_at %>
<%= relative_time(batch.finished_at) if batch.finished_at %>
<%= batch.jobs.count %>
<%= tag.button type: "button", class: "btn btn-sm text-muted ms-auto", role: "button", title: "Inspect", data: { bs_toggle: "collapse", bs_target: "##{dom_id(batch, 'properties')}" }, aria: { expanded: false, controls: dom_id(batch, "state") } do %> <%= render_icon "info" %> 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 %>
No batches found.
<% end %>