2019-10-20 23:07:50 +00:00
|
|
|
{% extends "symposion/speakers/base.html" %}
|
2015-10-16 17:53:02 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
2017-09-27 13:46:13 +00:00
|
|
|
{% load lca2018_tags %}
|
2019-10-20 23:21:25 +00:00
|
|
|
{% load lca2019_tags %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% load thumbnail %}
|
|
|
|
|
2019-10-20 23:21:25 +00:00
|
|
|
{% block head_title %}Speaker - {{ speaker.name }}{% endblock %}
|
|
|
|
{% block page_title %}Speaker - {{ speaker.name }}{% endblock %}
|
|
|
|
{% block page_lead %}
|
|
|
|
{% if speaker.twitter_username %}
|
|
|
|
<a href="https://twitter.com/{{ speaker.twitter_username }}">{{ speaker.twitter_username|twitter_handle }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if speaker.twitter_username and speaker.homepage %} | {% endif %}
|
|
|
|
{% if speaker.homepage %}
|
|
|
|
<a href="{{ speaker.homepage }}">{{ speaker.homepage }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2016-09-18 10:40:55 +00:00
|
|
|
{% block content %}
|
2019-10-20 23:07:50 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
{% if speaker.user == request.user or request.user.is_staff %}
|
|
|
|
<a class="btn btn-secondary float-right" href="{% url "speaker_edit" speaker.pk %}">Edit</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<h3>Biography</h3>
|
|
|
|
|
|
|
|
<div class="bio">{{ speaker.biography_html|safe }}</div>
|
|
|
|
|
2019-10-20 23:21:25 +00:00
|
|
|
<h3 class="my-4">Presentations</h3>
|
2019-10-20 23:07:50 +00:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
{% for presentation in presentations %}
|
|
|
|
<li>
|
|
|
|
<a href="{% url "schedule_presentation_detail" presentation.pk %}">{{ presentation.title }}</a>
|
|
|
|
{% if presentation.slot %}
|
|
|
|
–
|
|
|
|
{{ presentation.slot.day.date|date:"l" }}
|
|
|
|
{{ presentation.slot.start}}–{{ presentation.slot.end }}
|
|
|
|
in
|
|
|
|
{{ presentation.slot.rooms|join:", " }}
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% empty %}
|
|
|
|
<li>No presentations. This page is only visible to staff until there is a presentation.</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
{% speaker_photo speaker 512 as speaker_photo_url %}
|
|
|
|
<img src="{{ speaker_photo_url }}" alt="{{ speaker.name }}" class="rounded-circle img-fluid">
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endblock %}
|