symposion_app/pinaxcon/templates/symposion/speakers/speaker_profile.html
Joel Addison 929388220c Update speaker styling
Use site base template for all pages.
Fix speaker profile to work with Bootstrap 4.
2019-10-21 09:07:50 +10:00

45 lines
1.4 KiB
HTML

{% extends "symposion/speakers/base.html" %}
{% load i18n %}
{% load lca2018_tags %}
{% load thumbnail %}
{% block head_title %}{{ speaker.name }}{% endblock %}
{% block page_title %}{{ speaker.name }}{% endblock %}
{% block content %}
<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>
<h3>Presentations</h3>
<ul>
{% for presentation in presentations %}
<li>
<a href="{% url "schedule_presentation_detail" presentation.pk %}">{{ presentation.title }}</a>
{% if presentation.slot %}
&ndash;
{{ presentation.slot.day.date|date:"l" }}
{{ presentation.slot.start}}&ndash;{{ 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>
{% endblock %}