<%= link_to(@job.class, job_path(@job)) %>: <%= @failure_exception.class_name %>
<%= render partial: 'view_slice_pagination', locals: {error_type: @failure_exception.class_name, pagination: @view_slice_pagination} %>
<%= @failure_exception.message %>
<% @lines.each_with_index do |line, index| %> <% if index + 1 == @view_slice_pagination[:record_number] %> <% if flash[:success] %> <%= render partial: 'layouts/rocket_job_mission_control/partials/flash' %>
<% end %>
Line: <%= index + 1 %>

<%= line %>

<% if can?(:edit_slice, @job) %>
<%= link_to "Edit", edit_slice_job_path(@job, offset: @offset, error_type: @failure_exception.class_name, line_index: index), class: 'btn btn-primary' %>
<% end %>
<%= link_to "Back", job_path(@job), class: 'btn btn-warning' %>
<% else %>
Line: <%= index + 1 %>

<%= line %>

<% if can?(:edit_slice, @job) %>
<%= link_to "Edit", edit_slice_job_path(@job, offset: @offset, error_type: @failure_exception.class_name, line_index: index), class: 'btn btn-primary' %>
<% end %>
<% end %> <% end %>