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

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

Check if user has already voted in a booth on this poll
Check if user has already voted in a booth on this poll
