<% if poll.answerable_by?(current_user) && poll.votable_by?(current_user) %>
<%= link_to poll,
class: "icon-poll-answer can-answer",
title: t("polls.index.can_answer") do %>
<%= t("polls.index.can_answer") %>
<% end %>
<% elsif current_user.nil? %>
<%= link_to new_user_session_path,
class: "icon-poll-answer not-logged-in",
title: t("polls.index.cant_answer_not_logged_in") do %>
<%= t("polls.index.cant_answer_not_logged_in") %>
<% end %>
<% elsif current_user.unverified? %>
<%= link_to verification_path,
class: "icon-poll-answer unverified",
title: t("polls.index.cant_answer_verify") do %>
<%= t("polls.index.cant_answer_verify") %>
<% end %>
<% elsif !poll.votable_by?(current_user) %>
">
<%= t("polls.index.already_answer") %>
<% else %>
">
<%= t("polls.index.cant_answer") %>
<% end %>
<%= poll_dates(poll) %>
<% if poll.questions.count == 1 %>
<% poll.questions.each do |question| %>
<%= link_to question.title, poll %>
<% end %>
<% else %>
<%= link_to poll.name, poll %>
<% poll.questions.each do |question| %>
- <%= link_to question.title, question_path(question) %>
<% end %>
<% end %>
<% if poll.geozones.any? %>
<%= t("polls.index.geozone_info") %>
<% end %>
<%= link_to poll, class: "button expanded" do %>
<% if poll.expired? %>
<%= t("polls.index.participate_button_expired") %>
<% elsif poll.incoming? %>
<%= t("polls.index.participate_button_incoming") %>
<% else %>
<%= t("polls.index.participate_button") %>
<% end %>
<% end %>
<% end %>