2012-10-12 03:55:49 +00:00
|
|
|
{% extends "site_base.html" %}
|
|
|
|
|
2014-01-15 13:59:06 +00:00
|
|
|
{% load url from future %}
|
|
|
|
|
|
|
|
|
2012-10-12 03:55:49 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load thumbnail %}
|
|
|
|
|
|
|
|
|
2012-12-20 06:51:52 +00:00
|
|
|
{% block head_title %}{{ speaker.name }}{% endblock %}
|
2012-10-12 03:55:49 +00:00
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="span2">
|
|
|
|
{% if speaker.photo %}
|
|
|
|
<img src="{% thumbnail speaker.photo '128x128' %}" alt="{{ speaker.name }}" />
|
2012-10-12 04:48:48 +00:00
|
|
|
{% else %}
|
|
|
|
|
2012-10-12 03:55:49 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="span6">
|
|
|
|
{% if speaker.user == request.user or request.user.is_staff %}
|
2014-01-15 13:59:06 +00:00
|
|
|
<a class="btn pull-right" href="{% url 'speaker_edit' speaker.pk %}">Edit</a>
|
2012-10-12 03:55:49 +00:00
|
|
|
{% endif %}
|
|
|
|
<h1>{{ speaker.name }}</h1>
|
|
|
|
<div class="bio">{{ speaker.biography|safe }}</div>
|
|
|
|
|
|
|
|
<h2>Presentations</h2>
|
2012-12-20 06:51:52 +00:00
|
|
|
{% for presentation in presentations %}
|
2014-01-15 13:59:06 +00:00
|
|
|
<h3><a href="{% url 'schedule_presentation_detail' presentation.pk %}">{{ presentation.title }}</a></h3>
|
2012-10-12 03:55:49 +00:00
|
|
|
{% if presentation.slot %}
|
|
|
|
<p>
|
|
|
|
{{ presentation.slot.day.date|date:"l" }}
|
|
|
|
{{ presentation.slot.start}}–{{ presentation.slot.end }}
|
|
|
|
in
|
|
|
|
{{ presentation.slot.rooms|join:", " }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{% empty %}
|
|
|
|
<p>No presentations. This page is only visible to staff until there is a presentation.<p>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|