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