<% @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' %>
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' %>
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 %>