1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Improve table formatting in retry job view

This commit is contained in:
Jason Coene 2012-03-29 14:55:44 -04:00
parent dccb70a3f7
commit 246498b1e0

View file

@ -3,42 +3,38 @@ header
- retries_with_score(@score).each do |(msg, score)| - retries_with_score(@score).each do |(msg, score)|
table class="table table-striped table-bordered" table class="table table-striped table-bordered"
thead
tr
th Key
th Value
tbody tbody
tr tr
td Queue th Queue
td td
a href="queues/#{msg['queue']}" #{msg['queue']} a href="queues/#{msg['queue']}" #{msg['queue']}
tr tr
td Job Class th Job Class
td td
code= msg['class'] code= msg['class']
tr tr
td Job Arguments th Job Arguments
td td
code= msg['args'].inspect[0..100] code= msg['args'].inspect[0..1000]
tr tr
td Error Class th Error Class
td td
code= msg['error_class'] code= msg['error_class']
tr tr
td Error Message th Error Message
td= msg['error_message'] td= msg['error_message']
- if msg['retry_count'] > 0 - if msg['retry_count'] > 0
tr tr
td Retry Count th Retry Count
td= msg['retry_count'] td= msg['retry_count']
tr tr
td Last Retry th Last Retry
td= Time.parse(msg['retried_at']) td= Time.parse(msg['retried_at'])
- else - else
tr tr
td Originally Failed th Originally Failed
td= Time.parse(msg['failed_at']) td= Time.parse(msg['failed_at'])
tr tr
td Next Retry th Next Retry
td= Time.at(score) td= Time.at(score)