/delayed_jobs: reorganize columns; fix column sizes.

This commit is contained in:
evazion
2017-05-04 23:19:22 -05:00
parent cbb15b3e81
commit 9404eeafa1

View File

@@ -2,36 +2,32 @@
<div id="a-index">
<h1>Delayed Jobs</h1>
<table class="striped" width="100%">
<table class="striped autofit">
<thead>
<tr>
<th>ID</th>
<th>Queue</th>
<th>Name</th>
<% if CurrentUser.is_admin? %>
<th>Handler</th>
<% end %>
<th>Attempts</th>
<th>Priority</th>
<th>Last error</th>
<th>Run at</th>
<th>Failed at</th>
<th>Queue</th>
<th>Run at</th>
</tr>
</thead>
<tbody>
<% @delayed_jobs.each do |job| %>
<tr>
<td><%= job.id %></td>
<td><%= job.queue %></td>
<td><%= raw print_name(job) %></td>
<% if CurrentUser.is_admin? %>
<td><%= raw print_handler(job) %></td>
<td class="col-expand"><%= raw print_handler(job) %></td>
<% end %>
<td><%= job.attempts %></td>
<td><%= job.priority %></td>
<td><%= job.last_error %></td>
<td><%= job.run_at %></td>
<td><%= job.failed_at %></td>
<td><%= job.queue %></td>
<td class="col-expand"><%= job.last_error %></td>
<td><%= time_ago_in_words_tagged(job.failed_at) if job.failed_at %></td>
<td><%= time_ago_in_words_tagged(job.run_at) %></td>
</tr>
<% end %>
</tbody>