diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c82e6bab..5bb129ae 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -597,4 +597,8 @@ module ApplicationHelper end concurrent_events end + + def speaker_links(event) + event.speakers.map{ |speaker| link_to speaker.name, admin_user_path(speaker) }.join(', ').html_safe + end end diff --git a/app/views/admin/reports/_all_events.html.haml b/app/views/admin/reports/_all_events.html.haml index 6aef4178..7e76e927 100644 --- a/app/views/admin/reports/_all_events.html.haml +++ b/app/views/admin/reports/_all_events.html.haml @@ -27,7 +27,10 @@ %td = link_to event.title, edit_admin_conference_program_event_path(@conference.short_title, event) %br - .small (Presented by #{event.speaker_names}) + .small + (Presented by + = speaker_links(event) + ) - %w(registered biography commercials subtitle difficulty_level).each do |info| %td{'data-order' => "#{progress_status[info]}"} diff --git a/app/views/admin/reports/_events_with_requirements.html.haml b/app/views/admin/reports/_events_with_requirements.html.haml index b0759af8..9e01a8ae 100644 --- a/app/views/admin/reports/_events_with_requirements.html.haml +++ b/app/views/admin/reports/_events_with_requirements.html.haml @@ -21,7 +21,8 @@ %tr %td= event.id %td= link_to event.title, edit_admin_conference_program_event_path(@conference.short_title, event) - %td #{event.speaker_names} + %td + = speaker_links(event) %td= event.description %td= event.room.name if event.room %td= event.time.to_date if event.time diff --git a/app/views/admin/reports/_events_without_commercials.html.haml b/app/views/admin/reports/_events_without_commercials.html.haml index 1aaff358..7156beb9 100644 --- a/app/views/admin/reports/_events_without_commercials.html.haml +++ b/app/views/admin/reports/_events_without_commercials.html.haml @@ -17,4 +17,5 @@ %tr %td= event.id %td= link_to event.title, edit_admin_conference_program_event_path(@conference.short_title, event) - %td #{event.speaker_names} + %td + = speaker_links(event)