lib/sidetiq/views/sidetiq.erb in sidetiq-0.4.0.rc3 vs lib/sidetiq/views/sidetiq.erb in sidetiq-0.4.0.rc4

- old
+ new

@@ -24,11 +24,16 @@ <tr> <td> <a href="<%= "#{root_path}sidetiq/#{worker.name}/schedule" %>"><%= worker.name %></a> <td><%= worker.get_sidekiq_options["queue"] %></td> <td> + <% @next = schedule.next_occurrence(@time) %> + <% if @next.nil? %> + No schedule + <% else %> <%= relative_time(schedule.next_occurrence(@time)) %> + <% end %> </td> <td> <form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post"> <input class="btn btn-danger btn-small" type="submit" name="trigger" value="Trigger" data-confirm="Are you sure you want to trigger this job?" /> </form> @@ -37,11 +42,8 @@ <% end %> </table> <% else %> <div class="alert alert-success">No recurring jobs found.</div> <% end %> - </div> </div> </div> - -