<%= @vote.title %>
<% if @errors %>
<% @errors.each do |error| %>
<% if error.attribute == :rating and error.type == :blank %>
<%= _("Missing rating for candidate %{name}.") % { name: error.candidate.name } %>
<% end %>
<% end %>
<% end %>
<% if @vote.expire_on %>
<%= _("Closing date: %{date}") % { date: format_date_and_time(@vote.expire_on) } %>
<% end %>
<%= markdown(@vote.description) %>
<%= _("Your ratings") %>
<%= _("Participants") %>
<% @vote.ratings.collect { |rating| rating.user }.uniq.each do |user| %>
- <%= user.email %>
<% end %>
<% unless @vote.organizers.blank? %>
<%= _("Organizers") %>
<% @vote.organizers.each do |organizer| %>
- <%= organizer.user.email %>
<% end %>
<% end %>
<% if @vote.users.exists?(current_user.id) and @vote.expire_on.nil? %>
<%= _("Actions for organizers") %>
<%= _("Add organizer") %>
<% end %>