2013-08-22 02:38:52 +04:00
|
|
|
<header class="row">
|
2013-09-30 21:43:24 -07:00
|
|
|
<div class="col-sm-5">
|
2013-08-22 02:38:52 +04:00
|
|
|
<h3><%= t('ScheduledJobs') %></h3>
|
|
|
|
</div>
|
2013-11-10 12:39:14 -08:00
|
|
|
<% if @scheduled.size > 0 && @total_size > @count %>
|
|
|
|
<div class="col-sm-4">
|
2016-07-28 23:36:21 -03:00
|
|
|
<%= erb :_paging, locals: { url: "#{root_path}scheduled" } %>
|
2013-11-10 12:39:14 -08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<%= filtering('scheduled') %>
|
2013-08-22 02:38:52 +04:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<% if @scheduled.size > 0 %>
|
|
|
|
|
|
|
|
<form action="<%= root_path %>scheduled" method="post">
|
2015-07-06 15:52:41 -07:00
|
|
|
<%= csrf_tag %>
|
2015-05-14 02:48:17 +03:00
|
|
|
<div class="table_container">
|
|
|
|
<table class="table table-striped table-bordered table-white">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-08-04 11:18:07 -04:00
|
|
|
<th class="checkbox-column">
|
2015-05-14 02:48:17 +03:00
|
|
|
<input type="checkbox" class="check_all" />
|
|
|
|
</th>
|
|
|
|
<th><%= t('When') %></th>
|
|
|
|
<th><%= t('Queue') %></th>
|
|
|
|
<th><%= t('Job') %></th>
|
|
|
|
<th><%= t('Arguments') %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<% @scheduled.each do |entry| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<%= root_path %>scheduled/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
|
|
|
|
</td>
|
|
|
|
<td><%= entry.display_class %></td>
|
|
|
|
<td>
|
|
|
|
<div class="args"><%= display_args(entry.display_args) %></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-03-16 13:51:29 -07:00
|
|
|
<input class="btn btn-danger pull-right flip" type="submit" name="delete" value="<%= t('Delete') %>" />
|
|
|
|
<input class="btn btn-danger pull-right flip" type="submit" name="add_to_queue" value="<%= t('AddToQueue') %>" />
|
2013-08-22 02:38:52 +04:00
|
|
|
</form>
|
|
|
|
<% else %>
|
|
|
|
<div class="alert alert-success"><%= t('NoScheduledFound') %></div>
|
|
|
|
<% end %>
|