Skip to content

Commit

Permalink
Merge pull request resque#364 from meatballhat/359-not-exploding-when…
Browse files Browse the repository at this point in the history
…-job-not-found-for-timestamp

Only showing link to job with args if job is present
  • Loading branch information
Matteo Centenaro committed Feb 17, 2014
2 parents 4323489 + 5d0475d commit 2f82e04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/resque_scheduler/server/views/delayed.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
<% end %>
</td>
<td><%= h(job['args'].inspect) if job && delayed_timestamp_size == 1 %></td>
<td><a href="<%=u URI("/delayed/jobs/#{job['class']}?args=" + URI.encode(job['args'].to_json)) %>">All schedules</a></td>
<td>
<% if job %>
<a href="<%=u URI("/delayed/jobs/#{job['class']}?args=" + URI.encode(job['args'].to_json)) %>">All schedules</a>
<% end %>
</td>
</tr>
<% end %>
</table>
Expand Down

0 comments on commit 2f82e04

Please sign in to comment.