Export vote results with events
This commit is contained in:
parent
ff68699b96
commit
bb663ce853
|
@ -1,5 +1,5 @@
|
|||
<%- csv_headers = %w{id title subtitle type track language paticipants status} -%>
|
||||
<%- csv_headers = %w{id title subtitle type track language paticipants status rank number_of_votes} -%>
|
||||
<%= CSV.generate_line(csv_headers).html_safe -%>
|
||||
<%- @events.each do |event| -%>
|
||||
<%= CSV.generate_line([event.id, event.title, event.subtitle, event.event_type.name, event.track.name, event.language, participant_names_with_emails(event).join(', '), event.status]).html_safe -%>
|
||||
<%= CSV.generate_line([event.id, event.title, event.subtitle, event.event_type.name, event.track.name, event.language, participant_names_with_emails(event).join(', '), event.status, event.rank, event.number_of_votes]).html_safe -%>
|
||||
<%- end -%>
|
||||
|
|
Loading…
Reference in New Issue