Skip to content

Commit

Permalink
Only showing link to job with args if job is present
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Feb 17, 2014
1 parent 117506a commit 5d0475d
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 5d0475d

Please sign in to comment.