Sha256: 54f68c392e173aeba58837fa48348637439d984b1f77d1cc4cc537322e67cc57

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

<h3 class="wi">Recent job statuses</h3>


<table class="table table-striped table-bordered">
  <tr>
    <th>Worker/jid</th>
    <th>Status</th>
    <th>Last Updated ↆ</th>
    <th>Progress</th>
    <th>Message</th>
  </tr>
  <% @statuses.each do |container| %>
    <tr>
      <td>
          <%= container.worker %>
          <br />
          <%= container.jid %>
      </td>
      <td><%= container.status %></td>
      <td><%= Time.at(container.update_time.to_i) %></td>
      <td>
        <div class="progress progress-striped" style="margin-bottom: 0">
          <div class="bar" style="width: <%= container.pct_complete %>%; text-shadow: 1px 1px 1px black; background-color: #AD003D;
color: white;">
            <%= container.pct_complete %>%
          </div>
        </div>
      <td><%= container.message %></td>
    </tr>
  <% end %>
  <% if @statuses.empty? %>
    <tr>
      <td colspan="6"></td>
    </tr>
  <% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-status-0.5.1 web/views/statuses.erb
sidekiq-status-0.5.0 web/views/statuses.erb