2013-08-21 18:38:52 -04:00
|
|
|
<header class="row">
|
2013-10-01 00:43:24 -04:00
|
|
|
<div class="col-sm-5">
|
2013-08-21 18:38:52 -04:00
|
|
|
<h3><%= t('ScheduledJobs') %></h3>
|
|
|
|
</div>
|
2013-11-10 15:39:14 -05:00
|
|
|
<% if @scheduled.size > 0 && @total_size > @count %>
|
|
|
|
<div class="col-sm-4">
|
2013-08-21 18:38:52 -04:00
|
|
|
<%= erb :_paging, :locals => { :url => "#{root_path}scheduled" } %>
|
2013-11-10 15:39:14 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<%= filtering('scheduled') %>
|
2013-08-21 18:38:52 -04:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<% if @scheduled.size > 0 %>
|
|
|
|
|
|
|
|
<form action="<%= root_path %>scheduled" method="post">
|
|
|
|
<table class="table table-striped table-bordered table-white">
|
|
|
|
<thead>
|
2013-10-03 23:48:32 -04:00
|
|
|
<tr>
|
|
|
|
<th width="20px">
|
|
|
|
<input type="checkbox" class="check_all" />
|
|
|
|
</th>
|
|
|
|
<th width="25%"><%= t('When') %></th>
|
|
|
|
<th width="10%"><%= t('Queue') %></th>
|
2014-05-19 23:54:28 -04:00
|
|
|
<th><%= t('Job') %></th>
|
2013-10-03 23:48:32 -04:00
|
|
|
<th><%= t('Arguments') %></th>
|
|
|
|
</tr>
|
2013-08-21 18:38:52 -04:00
|
|
|
</thead>
|
2013-11-10 13:40:21 -05:00
|
|
|
<% @scheduled.each do |entry| %>
|
2013-08-21 18:38:52 -04:00
|
|
|
<tr>
|
|
|
|
<td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
<td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<a href="<%= root_path %>scheduled/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
<td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
2014-05-19 23:54:28 -04:00
|
|
|
<td><%= entry.display_class %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
<td>
|
2014-05-19 23:54:28 -04:00
|
|
|
<div class="args"><%= display_args(entry.display_args) %></div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
<input class="btn btn-danger pull-right" type="submit" name="delete" value="<%= t('Delete') %>" />
|
|
|
|
<input class="btn btn-danger pull-right" type="submit" name="add_to_queue" value="<%= t('AddToQueue') %>" />
|
|
|
|
</form>
|
|
|
|
<% else %>
|
|
|
|
<div class="alert alert-success"><%= t('NoScheduledFound') %></div>
|
|
|
|
<% end %>
|