def _render_talk_event_template(event, info, speaker_names, sponsored): template = get_template('events/_includes/schedule_talk_event.html') return template.render({ 'event': event, 'info': info, 'sponsored': sponsored, 'speakers': format_names(speaker_names), })
def render_proposedtalkevent(e): proposal = e.proposal speaker_names = [info.user.speaker_name for info in proposal.speakers] return format_html( '<div class="slot-item__content talk">' '<a href="{link}" class="talk__title">{title}</a>' '<a href="{link}#speaker-content" class="talk__speaker">{speakers}</a>' '<div class="talk__lang">{lang}</div>' '</div>', link=e.get_absolute_url(), title=proposal.title, speakers=format_names(speaker_names), lang=LANG_DISPLAY_MAP[proposal.language], )
def _render_talk_event_template(event, info, speaker_names, sponsored): template = get_template('events/_includes/schedule_talk_event.html') return template.render(Context({ 'event': event, 'info': info, 'sponsored': sponsored, 'speakers': format_names(speaker_names), }))
def speaker_names_display( proposal, sep_default=SEP_DEFAULT, sep_last=SEP_LAST): names = [info.user.speaker_name for info in proposal.speakers] return format_names(names, sep_default=sep_default, sep_last=sep_last)