lib/resque_scheduler/server/views/delayed.erb in resque-scheduler-1.8.1 vs lib/resque_scheduler/server/views/delayed.erb in resque-scheduler-1.8.2
- old
+ new
@@ -8,16 +8,23 @@
Showing <%= start = params[:start].to_i %> to <%= start + 20 %> of <b><%=size = resque.delayed_queue_schedule_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| %>
<tr>
+ <td>
+ <form action="<%= url "/delayed/queue_now" %>" method="post">
+ <input type="hidden" name="timestamp" value="<%= timestamp.to_i %>">
+ <input type="submit" value="Queue now">
+ </form>
+ </td>
<td><a href="<%= url "delayed/#{timestamp}" %>"><%= format_time(Time.at(timestamp)) %></a></td>
<td><%= delayed_timestamp_size = resque.delayed_timestamp_size(timestamp) %></td>
<% job = resque.delayed_timestamp_peek(timestamp, 0, 1).first %>
<td>
<% if job && delayed_timestamp_size == 1 %>
\ No newline at end of file