diff --git a/app/views/admin/jobs/index.html.erb b/app/views/admin/jobs/index.html.erb index e2e7be6..5318f90 100644 --- a/app/views/admin/jobs/index.html.erb +++ b/app/views/admin/jobs/index.html.erb @@ -1,56 +1,70 @@

Pending Jobs

+ <% @pending.each do |job| %> - + + <% if job.domain %> + + <% else %> + + <% end %> - + <% if job.args.size > 70 %> + + <% else %> + + <% end %> <% end %>
IdCreated at Domain Type Args Retries Controls
<%= job.id %><%= job.domain.try(:name) %><%= job.created_at %><%= link_to job.domain.name, domain_path(job.domain) %><%= job.arguments['zone'] %><%= job.job_type %><%= job.args %><%= truncate(job.args, length: 70) %><%= job.args %><%= job.retries %> <%= link_to_destroy admin_job_path(job), method: :delete, data: { confirm: 'Are you sure?' } %>

Completed Jobs

<% @completed.each do |job| %> - + <% if job.domain %> + + <% else %> + + <% end %> <% end %>
Id Created At Domain Type Args Retries Controls
<%= job.id %> <%= job.created_at %><%= job.domain.try(:name) %><%= link_to job.domain.name, domain_path(job.domain) %><%= job.arguments['zone'] %><%= job.job_type %> <%= job.args %> <%= job.retries %> <%= link_to_destroy admin_job_path(job), method: :delete, data: { confirm: 'Are you sure?' } %>