<% if ! @presenter.started? %>
  <%= render partial: "landing", locals: { start_node: @presenter.start_node } %>
<% else %>
  <% content_for :head do %>
    <meta name="robots" content="noindex">
  <% end %>
  <%= render "debug" %>

  <header class="page-header group">
    <div>
      <h1>
        <%= @presenter.title %>
      </h1>
    </div>
  </header>

  <% if @presenter.finished? %>
    <%= render partial: "result", locals: { outcome: @presenter.current_node } %>
  <% else %>
    <div class="step current">
      <%= form_tag calculate_current_question_path(@presenter), :method => :get %>
        <div class="current-question" id="current-question">
          <% if @presenter.questions.count > 1 %>
            <% @presenter.questions.each_with_index do |question, question_index| %>
              <%= render partial: "current_question", locals: {question: question, number: question_index + 1} %>
            <% end %>
          <% else %>
            <%= render partial: "current_question", locals: {question: @presenter.questions.first, number: nil} %>
          <% end %>
          <div class="next-question">
            <input type="hidden" name="next" value="1" />
            <button type="submit" class="medium button">Next step</button>
          </div>
        </div>
      </form>
    </div>
  <% end %>
  <%= render "previous_answers" %>
<% end %>

<% if ! @presenter.started? %>
  <%= render partial: "landing", locals: { start_node: @presenter.start_node } %>
<% else %>
  <% content_for :head do %>
    <meta name="robots" content="noindex">
  <% end %>
  <%= render "debug" %>

  <header class="page-header group">
    <div>
      <h1>
        <%= @presenter.title %>
      </h1>
    </div>
  </header>

  <% if @presenter.finished? %>
    <%= render partial: "result", locals: { outcome: @presenter.current_node } %>
  <% else %>
    <div class="step current">
      <%= form_tag calculate_current_question_path(@presenter), :method => :get %>
        <div class="current-question" id="current-question">
          <%= render partial: "current_question", locals: {question: @presenter.questions.first, number: nil} %>
          <div class="next-question">
            <input type="hidden" name="next" value="1" />
            <button type="submit" class="medium button">Next step</button>
          </div>
        </div>
      </form>
    </div>
  <% end %>
  <%= render "previous_answers" %>
<% end %>

Remove multiple Q-per-pg support from content partial
Remove multiple Q-per-pg support from content partial

Note that more generally `SmartAnswerPresenter#questions` can be a 0- or
1-element array, but in this case we're "inside" the `else` block for
`if ! @presenter.started?` and the `else` block of `if @presenter.finished?`
and so it will always be a 1-element array.
