<%= link_to job.name, host_job_path(@host, job) %> <%= job.job_type %> <%= job.fileset.name %> <%= job.restore_location %> <%= job.schedule.name %> <%= job.priority %> <% if job.enabled? %> <%= link_to 'Disable', toggle_enable_host_job_path(@host, job), method: :patch, class: "btn btn-warning", role: "button" %> <% else %> <%= link_to 'Enable', toggle_enable_host_job_path(@host, job), method: :patch, class: "btn btn-info", role: "button" %> <% end %>