Sha256: 3931d8392391a45d498768e5845529e6ea514adc570671e3f424bcd22680c52f
Contents?: true
Size: 1.68 KB
Versions: 12
Compression:
Stored size: 1.68 KB
Contents
<div class="card my-3"> <div class="table-responsive"> <table class="table card-table table-bordered table-hover table-sm mb-0"> <thead> <th>GoodJob ID</th> <th>ActiveJob ID</th> <th>Job Class</th> <th>Queue</th> <th>Scheduled At</th> <th>Error</th> <th>ActiveJob Params</th> <th>Actions</th> </thead> <tbody> <% jobs.each do |job| %> <tr id="<%= dom_id(job) %>"> <td><%= link_to job.id, active_job_path(job.serialized_params['job_id'], anchor: dom_id(job)) %></td> <td><%= link_to job.serialized_params['job_id'], active_job_path(job.serialized_params['job_id']) %></td> <td><%= job.serialized_params['job_class'] %></td> <td><%= job.queue_name %></td> <td><%= job.scheduled_at || job.created_at %></td> <td class="text-break"><%= truncate(job.error, length: 1_000) %></td> <td> <%= tag.button "Preview", type: "button", class: "btn btn-sm btn-outline-primary", role: "button", data: {bs_toggle: "collapse", bs_target: "##{dom_id(job, 'params')}"}, aria: {expanded: false, controls: dom_id(job, "params")} %> <%= tag.pre JSON.pretty_generate(job.serialized_params), id: dom_id(job, "params"), class: "collapse" %> </td> <td> <%= button_to job_path(job.id), method: :delete, class: "btn btn-sm btn-outline-danger", title: "Delete job" do %> <%= render "good_job/shared/icons/trash" %> <% end %> </td> </tr> <% end %> </tbody> </table> </div> </div>
Version data entries
12 entries across 12 versions & 1 rubygems