<% provide :title, poll.name %>

<div class="polls-results">
  <%= render Polls::PollHeaderComponent.new(poll) %>

  <%= render "polls/poll_subnav" %>

  <div class="polls-results-content">
    <div>
      <p><strong><%= t("polls.show.results.title") %></strong></p>
      <ul class="menu vertical">
        <%- poll.questions.each do |question| %>
          <li><%= link_to question.title, "##{question.title.parameterize}" %></li>
        <% end %>
      </ul>
    </div>

    <div>
      <% poll.questions.each do |question| %>
        <%= render Polls::Results::QuestionComponent.new(question) %>
      <% end %>
    </div>
  </div>
</div>
