1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/scheduled.erb

52 lines
1.7 KiB
Text
Raw Normal View History

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>
<% 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" } %>
</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>
<th><%= t('Worker') %></th>
<th><%= t('Arguments') %></th>
</tr>
2013-08-21 18:38:52 -04:00
</thead>
<% @scheduled.each do |entry| %>
2013-08-21 18:38:52 -04:00
<tr>
<td>
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
2013-08-21 18:38:52 -04:00
</td>
<td>
<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>
<a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
2013-08-21 18:38:52 -04:00
</td>
<td><%= entry.klass %></td>
2013-08-21 18:38:52 -04:00
<td>
<div class="args"><%= display_args(entry.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 %>