<%= @vote.title %>

<%= markdown(@vote.description) %>

<%= _("Candidates") %>

<% @vote.candidates.each do |candidate| %>

<%= candidate.name %>

<%= markdown(candidate.description) %>
<% end %>

<%= _("Add candidate") %>

<% if @vote.candidates.empty? %>
<%= _("This vote has no candidates yet. Add a first candidate.") %>
<% end %>
<% if @vote.candidates.length < 2 %> <% else %> <% end %>
<% if @vote.candidates.length < 2 %>

<%= _("Add at least 2 candidates before opening the vote to participants.") %>

<% end %> <% if @vote.candidates.length < 2 %>
<% end %>

<%= _("Organizers") %>

<%= _("Add organizer") %>