<% 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) || question.poll.voted_in_booth?(current_user)) %> "> <%= answer.title %> <% else %> <%= link_to answer.title, answer_question_path(question, answer: answer.title, token: token), method: :post, remote: true, title: t("poll_questions.show.vote_answer", answer: answer.title), class: "button secondary hollow js-question-answer" %> <% end %> <% end %> <% elsif !user_signed_in? %> <% question.question_answers.order(id: :desc).each do |answer| %> <%= link_to answer.title, new_user_session_path, class: "button secondary hollow" %> <% end %> <% elsif !current_user.level_two_or_three_verified? %> <% question.question_answers.order(id: :desc).each do |answer| %> <%= link_to answer.title, verification_path, class: "button secondary hollow" %> <% end %> <% else %> <% question.question_answers.order(id: :desc).each do |answer| %> <%= answer.title %> <% end %> <% end %>