<% if user_signed_in? && !current_user.unverified? && !poll.votable_by?(current_user) %>
<% if poll.image.present? %>
<%= image_tag poll.image_url(:large), alt: poll.image.title.unicode_normalize %>
<% end %>
<% if poll.questions.count == 1 %>
<% poll.questions.each do |question| %>
<% if poll.results_enabled? %>
<%= link_to question.title, results_poll_path(poll) %>
<% elsif poll.stats_enabled? %>
<%= link_to question.title, stats_poll_path(poll) %>
<% else %>
<%= link_to question.title, poll %>
<% end %>
<%= poll_dates(poll) %>
<% end %>
<% else %>
<% if poll.results_enabled? %>
<%= link_to poll.name, results_poll_path(poll) %>
<% elsif poll.stats_enabled? %>
<%= link_to poll.name, stats_poll_path(poll) %>
<% else %>
<%= link_to poll.name, poll %>
<% end %>
<%= poll_dates(poll) %>
<% poll.questions.each do |question| %>
- <%= question.title %>
<% end %>
<% end %>
<% if poll.geozones.any? %>
<%= t("polls.index.geozone_info") %>
<% end %>
<%= link_to poll, class: "button hollow 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 %>