Sha256: d373a08aa39ddc8904f958711ca358da47b756cf7badc0bc1123298daff4cd5f

Contents?: true

Size: 1.68 KB

Versions: 5

Compression:

Stored size: 1.68 KB

Contents

<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %>

<header class="row">
  <div class="span5">
    <h3>Recurring Job: <%= @worker.name %></h3>
  </div>
</header>

<div class="container-fluid sidetiq-container">
  <div class="row-fluid">
    <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_worker_nav.erb')) %>

    <div class="span9">
      <table class="table table-striped table-bordered table-hover table-white" style="width: 100%; margin: 0; table-layout:fixed;">
        <thead>
          <th style="width: 10%">Status</th>
          <th style="width: 20%">Timestamp</th>
          <th>Details</th>
        </thead>

        <% @history.each do |entry| %>
        <% entry = JSON.parse(entry, symbolize_names: true) %>
        <tr class="<%= 'error' if entry[:status] == 'failure' %>">
          <td><%= entry[:status].capitalize %></td>
          <td><%= Time.parse(entry[:timestamp]).strftime("%m/%d/%Y %I:%M:%S%p") %></td>
          <td>
            <% if entry[:status] == 'failure' %>
            <a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
              <%= entry[:exception] %>: <%= entry[:error] %>
            </a>
            <div style="display: none; overflow: auto; width: 100%; background: white; ">
              <pre style="display: inline-block; font-size: 0.8em; border: none; white-space: nowrap; margin: 0">
                <%= entry[:backtrace].join("<br />") %>
              </pre>
            </div>
            <% end %>
            <p>
              <span>Node: <%= entry[:node] %></span>
            </p>
          </td>
        </tr>
        <% end %>
      </table>
    </div>
  </div>
</div>

<br />

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidetiq-0.4.0 lib/sidetiq/views/history.erb
sidetiq-0.4.0.rc4 lib/sidetiq/views/history.erb
sidetiq-0.4.0.rc3 lib/sidetiq/views/history.erb
sidetiq-0.4.0.rc2 lib/sidetiq/views/history.erb
sidetiq-0.4.0.rc1 lib/sidetiq/views/history.erb