<%= @vote.description %>
| Participant | <% @vote.candidates.each do |candidate| %><%= candidate.name %> | <% end %>
|---|---|
| <%= user.email %> | <% @vote.candidates.each do |candidate| %> <% if rating = @vote.ratings.find { |rating| rating.user == user and rating.candidate == candidate } %><%= settings.values.select { |e| e[:id] == rating.value }.first[:label] %> | <% end %> <% end %>