/delayed_jobs: add '#c-delayed-jobs #a-index' wrapper divs.
This commit is contained in:
@@ -1,42 +1,46 @@
|
|||||||
<h1>Delayed Jobs</h1>
|
<div id="c-delayed-jobs">
|
||||||
|
<div id="a-index">
|
||||||
|
<h1>Delayed Jobs</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</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>Priority</th>
|
||||||
<th>Last error</th>
|
<th>Last error</th>
|
||||||
<th>Run at</th>
|
<th>Run at</th>
|
||||||
<th>Failed at</th>
|
<th>Failed at</th>
|
||||||
<th>Queue</th>
|
<th>Queue</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.id %></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><%= 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>
|
||||||
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<td><%= job.attempts %></td>
|
</tbody>
|
||||||
<td><%= job.priority %></td>
|
</table>
|
||||||
<td><%= job.last_error %></td>
|
|
||||||
<td><%= job.run_at %></td>
|
<%= numbered_paginator(@delayed_jobs) %>
|
||||||
<td><%= job.failed_at %></td>
|
|
||||||
<td><%= job.queue %></td>
|
<% content_for(:page_title) do %>
|
||||||
</tr>
|
Delayed Jobs - <%= Danbooru.config.app_name %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
</div>
|
||||||
|
|
||||||
<%= numbered_paginator(@delayed_jobs) %>
|
|
||||||
|
|
||||||
<% content_for(:page_title) do %>
|
|
||||||
Delayed Jobs - <%= Danbooru.config.app_name %>
|
|
||||||
<% end %>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user