Sha256: ebf51c7ae5722508885e5febf1839297b1fa7d9bc7ce6348c4a46bf309980ed2
Contents?: true
Size: 1.68 KB
Versions: 1
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 = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.4.1 | lib/sidetiq/views/history.erb |