- <% question.valid_answers.each do |answer| %>
- <% if @answers_by_question_id[question.id] == answer %>
- ">
- <%= answer %>
-
- <% 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 %>
-
- <% if current_user.nil? %>
-
- <%= t("poll_questions.show.not_logged_in",
- signin: link_to(t("poll_questions.show.signin"), new_user_session_path, class: "probe-message"),
- signup: link_to(t("poll_questions.show.signup"), new_user_registration_path, class: "probe-message")).html_safe %>
-
- <% elsif current_user.unverified? %>
-
- <%= t('poll_questions.show.cant_answer_verify_html',
- verify_link: link_to(t('poll_questions.show.verify_link'), verification_path)) %>
-
+ <% question.valid_answers.each do |answer| %>
+ <% if @answers_by_question_id[question.id] == answer %>
+
">
+ <%= answer %>
+
<% else %>
-
- <%= t('poll_questions.show.cant_answer_wrong_geozone') %>
-
+ <%= 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 %>
-
-
- <% question.valid_answers.each do |answer| %>
- <%= answer %>
- <% end %>
-
-
-
+ <% end %>
+ <% else %>
+ <% question.valid_answers.each do |answer| %>
+