diff --git a/app/views/admin/jobs/index.html.erb b/app/views/admin/jobs/index.html.erb index 9462c91..a946c75 100644 --- a/app/views/admin/jobs/index.html.erb +++ b/app/views/admin/jobs/index.html.erb @@ -1,39 +1,49 @@ -<% @job_categories.each do |title, jobs| %> -

<%= title%> Jobs

- - - - - - - - - - - - + - - <% jobs.each do |job| %> - - - - <% if job.domain %> - - <% else %> - - <% end %> - - <% if job.args.size > 70 %> - - <% else %> - - <% end %> - - - - <% end %> - -
IdCreated atDomainTypeArgsRetriesControls
<%= job.id %><%= job.created_at %><%= link_to job.domain.name, domain_path(job.domain) %><%= job.arguments['zone'] %><%= job.job_type %><%= truncate(job.args, length: 70) %><%= job.args %><%= job.retries %><%= link_to_destroy admin_job_path(job), method: :delete, data: { confirm: 'Are you sure?' } %>
-<% end %> +
+ <% @job_categories.each_with_index do |pair, idx| %> + <% title, jobs = pair %> +
+ + + + + + + + + + + + + + <% jobs.each do |job| %> + + + + <% if job.domain %> + + <% else %> + + <% end %> + + <% if job.args.size > 70 %> + + <% else %> + + <% end %> + + + + <% end %> + +
IdCreated atDomainTypeArgsRetriesControls
<%= job.id %><%= job.created_at %><%= link_to job.domain.name, domain_path(job.domain) %><%= job.arguments['zone'] %><%= job.job_type %><%= truncate(job.args, length: 70) %><%= job.args %><%= job.retries %><%= link_to_destroy admin_job_path(job), method: :delete, data: { confirm: 'Are you sure?' } %>
+
+ <% end %> +