Sha256: d1b4a6e226bbd9fb7540b60b5a84c611c421550930ce52da65081e829a96cc1c
Contents?: true
Size: 1.65 KB
Versions: 3
Compression:
Stored size: 1.65 KB
Contents
<%= File.read(File.join(File.dirname(__FILE__), 'views', 'assets', 'styles.css')) %> <header class="row"> <div class="col-md-5"> <h3>Recurring Job: <%= @worker.name %></h3> </div> </header> <div class="container"> <div class="row"> <%= erb File.read(File.join(File.dirname(__FILE__), 'views', '_worker_nav.erb')) %> <div class="col-md-9"> <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 = Sidekiq.load_json(entry).symbolize_keys %> <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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.5.0 | lib/sidetiq/views/history.erb |
sidetiq-0.4.3 | lib/sidetiq/views/history.erb |
sidetiq-0.4.2 | lib/sidetiq/views/history.erb |