Executions
<% executions.each do |execution| %> <%= tag.div id: dom_id(execution), class: "list-group-item py-3" do %>
#<%= execution.number %>: <%= tag.code link_to(execution.id, "##{dom_id(execution)}", class: "text-muted text-decoration-none") %>
<%= status_badge execution.status %> <%= relative_time execution.last_status_at, include_seconds: true %> <% if execution.runtime_latency %> • 
<%= format_duration execution.runtime_latency %> runtime
<% end %> <% if execution.queue_latency %> • 
<%= format_duration execution.queue_latency %> in queue
<% end %>
<%= tag.button type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: { bs_toggle: "collapse", bs_target: "##{dom_id(execution, 'params')}" }, aria: { expanded: false, controls: dom_id(execution, "params") } do %> Inspect <% end %>
<% if execution.error %>
Error:
<%= execution.error %>
<% end %>
<%= tag.pre JSON.pretty_generate(execution.serialized_params), id: dom_id(execution, "params"), class: "collapse bg-light card card-body p-3 my-3" %>
<% end %> <% end %>