<% if current_user %> <% if current_user.unverified? %>
"> <%= t("polls.index.unverified") %>
<% elsif cannot?(:answer, poll) %>
"> <%= t("polls.index.cant_answer") %>
<% elsif !poll.votable_by?(current_user) %>
"> <%= t("polls.index.already_answer") %>
<% end %> <% else %>
"> <%= t("polls.index.not_logged_in") %>
<% end %>
<% if poll.image.present? %> <%= image_tag poll.image.variant(:large), alt: poll.image.title.unicode_normalize %> <% end %>
<% if poll.questions.one? %>

<%= link_to_poll poll.questions.first.title, poll %>

<%= dates %>
<% else %>

<%= link_to_poll poll.name, poll %>

<%= dates %>
    <% poll.questions.sort_for_list.each do |question| %>
  • <%= question.title %>
  • <% end %>
<% end %> <%= render Polls::GeozonesComponent.new(poll) %> <%= render SDG::TagListComponent.new(poll, limit: 5, linkable: false) %>
<% if poll.expired? %> <%= link_to_poll t("polls.index.participate_button_expired"), poll, class: "button hollow expanded" %> <% else %> <%= link_to_poll t("polls.index.participate_button"), poll, class: "button hollow expanded" %> <% end %>