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('Retries') %></h3>
|
|
|
|
</div>
|
2013-11-10 15:39:14 -05:00
|
|
|
<% if @retries.size > 0 && @total_size > @count %>
|
|
|
|
<div class="col-sm-4">
|
2013-08-21 18:38:52 -04:00
|
|
|
<%= erb :_paging, :locals => { :url => "#{root_path}retries" } %>
|
2013-11-10 15:39:14 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<%= filtering('retries') %>
|
2013-08-21 18:38:52 -04:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<% if @retries.size > 0 %>
|
|
|
|
<form action="<%= root_path %>retries" method="post">
|
|
|
|
<table class="table table-striped table-bordered table-white">
|
2013-10-03 23:48:32 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2013-12-14 05:09:22 -05:00
|
|
|
<th width="20px" class="table-checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" class="check_all" />
|
|
|
|
</label>
|
2013-10-03 23:48:32 -04:00
|
|
|
</th>
|
|
|
|
<th width="25%"><%= t('NextRetry') %></th>
|
|
|
|
<th width="11%"><%= t('RetryCount') %></th>
|
|
|
|
<th><%= t('Queue') %></th>
|
|
|
|
<th><%= t('Worker') %></th>
|
|
|
|
<th><%= t('Arguments') %></th>
|
|
|
|
<th><%= t('Error') %></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2013-11-10 13:40:21 -05:00
|
|
|
<% @retries.each do |entry| %>
|
2013-08-21 18:38:52 -04:00
|
|
|
<tr>
|
2013-11-19 22:16:50 -05:00
|
|
|
<td class="table-checkbox">
|
|
|
|
<label>
|
|
|
|
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
|
|
|
|
</label>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
|
|
|
<td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<a href="<%= root_path %>retries/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<td><%= entry['retry_count'] %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
<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>
|
2013-11-10 13:40:21 -05:00
|
|
|
<td><%= entry.klass %></td>
|
2013-08-21 18:38:52 -04:00
|
|
|
<td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<div class="args"><%= display_args(entry.args) %></div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</td>
|
2013-09-19 06:10:14 -04:00
|
|
|
<td>
|
2013-11-10 13:40:21 -05:00
|
|
|
<div><%= h truncate("#{entry['error_class']}: #{entry['error_message']}", 200) %></div>
|
2013-09-19 06:10:14 -04:00
|
|
|
</td>
|
2013-08-21 18:38:52 -04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
2013-10-01 00:43:24 -04:00
|
|
|
<input class="btn btn-primary btn-xs pull-left" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
|
|
|
<input class="btn btn-danger btn-xs pull-left" type="submit" name="delete" value="<%= t('Delete') %>" />
|
2013-08-21 18:38:52 -04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<form action="<%= root_path %>retries/all/delete" method="post">
|
2013-10-01 00:43:24 -04:00
|
|
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
2013-08-21 18:38:52 -04:00
|
|
|
</form>
|
|
|
|
<form action="<%= root_path %>retries/all/retry" method="post">
|
2013-10-01 00:43:24 -04:00
|
|
|
<input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
2013-08-21 18:38:52 -04:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
<div class="alert alert-success"><%= t('NoRetriesFound') %></div>
|
|
|
|
<% end %>
|