lib/resque/scheduler/server/views/delayed.erb in resque-scheduler-4.8.0 vs lib/resque/scheduler/server/views/delayed.erb in resque-scheduler-4.9.0

- old
+ new

@@ -14,10 +14,18 @@ <p class='sub'> Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <b><%= size %></b> timestamps </p> +<% if size > 0 %> + <div style="padding-bottom: 10px"> + <form method="POST" action="<%= u 'delayed/clear' %>" class='clear-delayed confirmSubmission'> + <input type='submit' name='' value='Clear Delayed Jobs' /> + </form> + </div> +<% end %> + <table> <tr> <th></th> <th>Timestamp</th> <th>Job count</th> @@ -25,11 +33,11 @@ <th>Args</th> <th>All schedules</th> </tr> <% resque.delayed_queue_peek(start, 20).each do |timestamp| %> <tr> - <td> + <td style="padding-top: 12px; padding-bottom: 2px; width: 10px"> <form action="<%= u "/delayed/queue_now" %>" method="post"> <input type="hidden" name="timestamp" value="<%= timestamp.to_i %>"> <input type="submit" value="Queue now"> </form> </td> @@ -50,14 +58,7 @@ <% end %> </td> </tr> <% end %> </table> - -<% if size > 0 %> - <br> - <form method="POST" action="<%= u 'delayed/clear' %>" class='clear-delayed'> - <input type='submit' name='' value='Clear Delayed Jobs' /> - </form> -<% end %> <%= partial :next_more, :start => start, :size => size %>