/delayed_jobs: reorganize columns; fix column sizes.
This commit is contained in:
@@ -2,36 +2,32 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Delayed Jobs</h1>
|
<h1>Delayed Jobs</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped autofit">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>Queue</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<% if CurrentUser.is_admin? %>
|
<% if CurrentUser.is_admin? %>
|
||||||
<th>Handler</th>
|
<th>Handler</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<th>Attempts</th>
|
<th>Attempts</th>
|
||||||
<th>Priority</th>
|
|
||||||
<th>Last error</th>
|
<th>Last error</th>
|
||||||
<th>Run at</th>
|
|
||||||
<th>Failed at</th>
|
<th>Failed at</th>
|
||||||
<th>Queue</th>
|
<th>Run at</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @delayed_jobs.each do |job| %>
|
<% @delayed_jobs.each do |job| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= job.id %></td>
|
<td><%= job.queue %></td>
|
||||||
<td><%= raw print_name(job) %></td>
|
<td><%= raw print_name(job) %></td>
|
||||||
<% if CurrentUser.is_admin? %>
|
<% if CurrentUser.is_admin? %>
|
||||||
<td><%= raw print_handler(job) %></td>
|
<td class="col-expand"><%= raw print_handler(job) %></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<td><%= job.attempts %></td>
|
<td><%= job.attempts %></td>
|
||||||
<td><%= job.priority %></td>
|
<td class="col-expand"><%= job.last_error %></td>
|
||||||
<td><%= job.last_error %></td>
|
<td><%= time_ago_in_words_tagged(job.failed_at) if job.failed_at %></td>
|
||||||
<td><%= job.run_at %></td>
|
<td><%= time_ago_in_words_tagged(job.run_at) %></td>
|
||||||
<td><%= job.failed_at %></td>
|
|
||||||
<td><%= job.queue %></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user