- <% if current_user.nil? %>
+ <% if @question.poll.current? %>
+
+ <% 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)) %>
+
+ <% else %>
+
+ <%= t('poll_questions.show.cant_answer_wrong_geozone') %>
+
+ <% end %>
+
+
+
+ <%= render "answers", question: @question %>
+
+
+
+ <% elsif @question.poll.incoming? %>
+
+ <%= t('poll_questions.show.cant_answer_expired') %>
+
+ <% elsif @question.poll.expired? %>
- <%= 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)) %>
-
- <% else %>
-
- <%= t('poll_questions.show.cant_answer_wrong_geozone') %>
+ <%= t('poll_questions.show.cant_answer_incoming') %>
<% end %>