<div class="poll-question-answers">
  <% if can? :answer, question %>
    <% question.valid_answers.each do |answer| %>
      <% if @answers_by_question_id[question.id] == answer %>
        <span class="button" title="<%= t("poll_questions.show.voted", answer: answer)%>">
          <%= answer %>
        </span>
      <% else %>
        <%= link_to answer,
          answer_question_path(question, answer: answer),
          method: :post,
          remote: true,
          title: t("poll_questions.show.vote_answer", answer: answer),
          class: "button secondary hollow" %>
      <% end %>
    <% end %>
  <% else %>
    <% question.valid_answers.each do |answer| %>
      <span class="button disabled"><%= answer %></span>
    <% end %>
  <% end %>
</div>
