<% # this custom result template is currently tested on the next-steps-for-your-business flow %>
<% outcome = @presenter.current_node %>
<% content_for :outcome_title do %>
  <% if outcome.title.present? %><%= outcome.title %><% else %>Outcome<% end %>
<% end %>
<% content_for :head do %>
  <meta name="robots" content="noindex">
<% end %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">
    <%= render "govuk_publishing_components/components/title", {
      title: outcome.title,
      margin_bottom: 6
    } %>

    <%= outcome.description %>

    <%= outcome.body %>

    <%= render "govuk_publishing_components/components/heading", {
      text: "Change your answers",
      font_size: "l",
      border_top: 2,
      padding: true
    } %>

    <%= tag.p class: "govuk-body govuk-!-margin-bottom-8" do %>
      <%= link_to "Start again", restart_flow_path(@presenter), class: "govuk-link" %>
    <% end %>

    <%= render "govuk_publishing_components/components/print_link" %>
    <%= render 'smart_answers/shared/debug' %>
  </div>
</div>

<% # this custom result template is currently tested on the next-steps-for-your-business flow %>
<% outcome = @presenter.current_node %>
<% content_for :outcome_title do %>
  <% if outcome.title.present? %><%= outcome.title %><% else %>Outcome<% end %>
<% end %>
<% content_for :head do %>
  <meta name="robots" content="noindex">
<% end %>

<div class="govuk-grid-row">
  <div class="govuk-grid-column-two-thirds">
    <%= render "govuk_publishing_components/components/title", {
      title: outcome.title,
      margin_bottom: 6
    } %>

    <%= outcome.description %>

    <%= outcome.body %>

    <%= render "govuk_publishing_components/components/heading", {
      text: "Change your answers",
      font_size: "l",
      border_top: 2,
      padding: true
    } %>

    <%= tag.p class: "govuk-body govuk-!-margin-bottom-8" do %>
      <%= link_to "Start again",
        restart_flow_path(@presenter),
        class: "govuk-link",
        data: {
          module: "gem-track-click",
          "track-action": "Start again",
          "track-category": "StartAgain",
          "track-label": @presenter.current_node.title
        } %>
    <% end %>

    <%= render "govuk_publishing_components/components/print_link" %>
    <%= render 'smart_answers/shared/debug' %>
  </div>
</div>

Fix tracking on start again link
Fix tracking on start again link

For the "Next steps of your business" flow, the data attributes to
enable link tracking were missing for the "Start again" link.
