From 5d0475df1c919d7d2708ab3c9c95d7885749dd2e Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 16 Feb 2014 22:28:31 -0500 Subject: [PATCH] Only showing link to job with args if job is present Fixes #359 --- lib/resque_scheduler/server/views/delayed.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/resque_scheduler/server/views/delayed.erb b/lib/resque_scheduler/server/views/delayed.erb index 88fb0243..2af2a596 100644 --- a/lib/resque_scheduler/server/views/delayed.erb +++ b/lib/resque_scheduler/server/views/delayed.erb @@ -40,7 +40,11 @@ <% end %> <%= h(job['args'].inspect) if job && delayed_timestamp_size == 1 %> - All schedules + + <% if job %> + All schedules + <% end %> + <% end %>