Sha256: 652958df25edc099df40d49c12075bac7c3313566e5f37e9cb506cf3daa1cc2b

Contents?: true

Size: 1.63 KB

Versions: 7

Compression:

Stored size: 1.63 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><%= job.error %></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 "shared/icons/trash" %>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
good_job-1.11.3 engine/app/views/shared/_jobs_table.erb
good_job-1.11.2 engine/app/views/shared/_jobs_table.erb
good_job-1.11.1 engine/app/views/shared/_jobs_table.erb
good_job-1.11.0 engine/app/views/shared/_jobs_table.erb
good_job-1.10.1 engine/app/views/shared/_jobs_table.erb
good_job-1.10.0 engine/app/views/shared/_jobs_table.erb
good_job-1.9.6 engine/app/views/shared/_jobs_table.erb