-
Notifications
You must be signed in to change notification settings - Fork 236
/
recurring_jobs.erb
39 lines (37 loc) · 1.15 KB
/
recurring_jobs.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<h3><%= t('recurring_jobs') %></h3>
<div class="table_container">
<table class="table table-hover table-bordered table-striped table-white">
<thead>
<tr>
<th><%= t('name') %></th>
<th><%= t('description') %></th>
<th><%= t('interval') %></th>
<th><%= t('class') %></th>
<th><%= t('queue') %></th>
<th><%= t('arguments') %></th>
<th><%= t('next_time') %></th>
<th></th>
</tr>
</thead>
<tbody>
<% @presented_jobs.each do |job| %>
<tr>
<td><%= job.name %></td>
<td><%= job['description'] %></td>
<td><%= job.interval %></td>
<td><%= job['class'] %></td>
<td>
<a href="<%= root_path %>queues/<%= job.queue %>"><%= job.queue %></a>
</td>
<td><%= job['args'] %></td>
<td><%= job.next_time %></td>
<td class="text-center">
<a class="btn btn-warn btn-xs" href="<%= root_path %>recurring-jobs/<%= URI.escape(job.name) %>/enqueue">
<%= t('enqueue_now') %>
</a>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>