Sha256: 1a4e146792599a22943220b6113baff442a414308b6cd0d206e68890197b1271

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

<div class="row">
  <div class="col-md-12">
    <div class="card">
      <div class="header">
        <h4 class="title">Job #<%= job.id %></h4>
        <p class="category">
          Tasks list: <%= total_count %> <%= 'task'.pluralize(total_count) %>
        </p>
      </div>
      <div class="content">
        <table class="table table-stripped">
          <thead>
            <tr>
              <th>Task Name</th>
              <th>Queued</th>
              <th>Working</th>
              <th>Completed</th>
              <th>Failed</th>
              <th>Invalid Payload</th>
            </tr>
          </thead>
          <tbody>
            <% task_statuses.each do |task_name, statuses| %>
              <tr>
                <td><%= task_name %></td>
                <td><%= statuses['queued'] %></td>
                <td><%= statuses['working'] %></td>
                <td><%= statuses['completed'] %></td>
                <td><%= statuses['failed'] %></td>
                <td><%= statuses['invalid_payload'] %></td>
              </tr>
            <% end %>
          </tbody>
        </table>
        <table class="table table-stripped">
          <thead>
            <tr>
              <th>Name</th>
              <th>Queue Name</th>
              <th>Status</th>
              <th>Payload</th>
              <!-- <th>Locked Until</th> -->
              <!-- <th>Locked By</th> -->
            </tr>
          </thead>
          <tbody>
            <% (tasks[nil] || []).each do |task| %>
              <%= erb :task_row, locals: { tasks: tasks, task: task, level: 0, root_id: task.id } %>
            <% end %>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qyu-1.1.0 lib/qyu/ui/views/show_job.erb
qyu-1.0.2 lib/qyu/ui/views/show_job.erb
qyu-1.0.1 lib/qyu/ui/views/show_job.erb
qyu-1.0.0 lib/qyu/ui/views/show_job.erb