lib/resque/server/views/workers.erb in resque-1.27.0 vs lib/resque/server/views/workers.erb in resque-1.27.1
- old
+ new
@@ -27,12 +27,11 @@
<td><%= worker.processed %></td>
<td><%= worker.failed %></td>
<td class='process'>
<% data = worker.processing || {} %>
<% if data['queue'] %>
- <code><%= data['payload']['class'] %></code>
- <small><a class="queue time" href="<%=u "/working/#{worker}" %>"><%= data['run_at'] %></a></small>
+ <%= partial :processing, :worker => worker, :job => data %>
<% else %>
<span class='waiting'>Waiting for a job...</span>
<% end %>
</td>
</tr>
@@ -68,11 +67,10 @@
<td class='queues'><%= queues.split(',').map { |q| '<a class="queue-tag" href="' + u("/queues/#{q}") + '">' + q + '</a>'}.join('') %></td>
<td class='process'>
<% data = worker.processing || {} %>
<% if data['queue'] %>
- <code><%= data['payload']['class'] %></code>
- <small><a class="queue time" href="<%=u "/working/#{worker}" %>"><%= data['run_at'] %></a></small>
+ <%= partial :processing, :worker => worker, :job => data %>
<% else %>
<span class='waiting'>Waiting for a job...</span>
<% end %>
</td>
</tr>