Create links for speakers in admin/reports#index

This commit is contained in:
selini 2017-03-21 21:08:53 +02:00 committed by Stella Rouzi
parent 93404d543f
commit 8a0f3c99b0
4 changed files with 12 additions and 3 deletions

View file

@ -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