lib/resque_scheduler/server/views/delayed.erb in resque-scheduler-2.0.0.d vs lib/resque_scheduler/server/views/delayed.erb in resque-scheduler-2.0.0.e

- old
+ new

@@ -1,23 +1,29 @@ <h1>Delayed Jobs</h1> +<%- size = resque.delayed_queue_schedule_size %> +<% if size > 0 %> + <form method="POST" action="<%=u 'delayed/clear'%>" class='clear-delayed'> + <input type='submit' name='' value='Clear Delayed Jobs' /> + </form> +<% end %> <p class='intro'> This list below contains the timestamps for scheduled delayed jobs. </p> <p class='sub'> - Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <b><%=size = resque.delayed_queue_schedule_size %></b> timestamps + Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <b><%= size %></b> timestamps </p> <table> <tr> <th></th> <th>Timestamp</th> <th>Job count</th> <th>Class</th> <th>Args</th> </tr> - <% resque.delayed_queue_peek(start, start+20).each do |timestamp| %> + <% resque.delayed_queue_peek(start, 20).each do |timestamp| %> <tr> <td> <form action="<%= u "/delayed/queue_now" %>" method="post"> <input type="hidden" name="timestamp" value="<%= timestamp.to_i %>"> <input type="submit" value="Queue now"> \ No newline at end of file