master
1<% provide(:container_class, 'container-fluid') %>
2<div class="row">
3 <div class="col-3">
4 <%= render partial: "my/shared/my_nav" %>
5 </div>
6 <div class="col-9">
7 <h1><%= @job.handler %></h1>
8 <p><%= link_to "<< Back", admin_jobs_path %></p>
9 <table class="table table-condensed">
10 <thead>
11 <tr>
12 <th>id</th>
13 <th>attempts</th>
14 <th>priority</th>
15 <th>status</th>
16 <th>locked by</th>
17 <th>queue</th>
18 <th>run at</th>
19 <th>locked at</th>
20 <th>created at</th>
21 <th>updated at</th>
22 </tr>
23 </thead>
24 <tbody>
25 <tr>
26 <td><%= link_to @job.id, admin_job_path(@job) %></td>
27 <td><%= @job.attempts %></td>
28 <td><%= @job.priority %></td>
29 <td><%= @job.last_error.present? ? link_to('FAILED', admin_job_path(@job)) : 'Not Run' %></td>
30 <td><%= @job.locked_by %> </td>
31 <td><%= @job.queue %></td>
32 <td><%= @job.run_at %></td>
33 <td><%= @job.locked_at %></td>
34 <td><%= @job.created_at %></td>
35 <td><%= @job.updated_at %></td>
36 </tr>
37 </tbody>
38 </table>
39
40 <h2><%= @job.failed_at %></h2>
41 <%= debug @job.last_error %>
42 </div>
43</div>