clarion/app/views/management/events/index.csv.erb

6 lines
659 B
Plaintext
Raw Normal View History

2024-10-20 17:02:08 +03:00
<%- csv_headers = %w{id title subtitle type track language participants length status rank number_of_votes abstract description proposer_notes resources_bundle} -%>
2016-10-08 21:25:45 +03:00
<%= CSV.generate_line(csv_headers).html_safe -%>
<%- @events.each do |event| -%>
2024-10-20 17:02:08 +03:00
<%= 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.length, event.status, event.rank, event.number_of_votes, event.abstract, event.description, event.notes, (rails_blob_url(event.resources_bundle, disposition: "attachment") if event.resources_bundle.attached?)]).html_safe -%>
2016-10-08 21:25:45 +03:00
<%- end -%>