- <% if @question.poll.current? %>
-
- <% if current_user.nil? %>
+ <% if can? :answer, @question %>
+
+ <%= link_to t('poll_questions.show.answer_this_question'),
+ @question.poll,
+ class: 'large button'
+ %>
+
+ <% else %>
+ <% if @question.poll.incoming? %>
+
+ <%= t('poll_questions.show.cant_answer_incoming') %>
+
+ <% elsif @question.poll.expired? %>
+
+ <%= t('poll_questions.show.cant_answer_expired') %>
+
+ <% elsif 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"),
@@ -70,15 +84,6 @@
<%= render "answers", question: @question %>