<section class="debate-phase">
  <header>
    <h3><%= t("legislation.summary.debate_phase") %></h3>
    <h3><%= t("legislation.summary.debates", count: questions.count) %></h3>
  </header>

  <% if questions.any? %>
    <div>
      <% questions.each do |question| %>
        <div class="debate-summary">
          <div class="question-title">
            <h4><%= link_to question.title, polymorphic_path(question) %></h4>
            <%= render Shared::CommentsCountComponent.new(
              question.comments.count,
              url: polymorphic_path(question, anchor: "comments")
            ) %>
          </div>

          <%= render "summary_comments", comments: question.best_comments %>
        </div>
      <% end %>
    </div>
  <% else %>
    <div class="callout primary">
      <p><%= t("legislation.processes.debate.empty_questions") %></p>
    </div>
  <% end %>
</section>
