Skip to content

Commit

Permalink
Merge pull request #120 from talis/add_job_id_to_failure_and_queue_sh…
Browse files Browse the repository at this point in the history
…ow_page

Add job ID to Queue show and Job Failure page
  • Loading branch information
kirillplatonov committed May 26, 2017
2 parents 99c98e0 + 576d593 commit 93f95c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/resque_web/failures/show.html.erb
Expand Up @@ -13,8 +13,8 @@

<ul class="failed">
<% @jobs.each do |id, job| %>
<%= render :partial => 'failed_job', :locals => {:id => id, :job => job} %>
<%= render :partial => 'failed_job', :locals => {:id => job['id'] || id, :job => job} %>
<% end %>
</ul>

<%= pagination :start => failure_start_at, :total => failure_size unless params[:class] %>
<%= pagination :start => failure_start_at, :total => failure_size unless params[:class] %>
2 changes: 2 additions & 0 deletions app/views/resque_web/queues/show.html.erb
Expand Up @@ -11,11 +11,13 @@
<p class="sub">Showing <%= queue_start_at %> to <%= queue_end_at %> of <b><%= queue_size %></b> jobs</p>
<table class="table table-bordered jobs">
<tr>
<th>ID</th>
<th>Class</th>
<th>Args</th>
</tr>
<% queue_jobs.each do |job| %>
<tr>
<td class='id'><%= job['id'] %></td>
<td class='class'><%= job['class'] %></td>
<td class='args'><%=h job['args'].inspect %></td>
</tr>
Expand Down

0 comments on commit 93f95c2

Please sign in to comment.