bornhack-website/program/templates/speaker_detail.html

32 lines
953 B
HTML
Raw Normal View History

{% extends 'schedule_base.html' %}
2016-08-08 17:45:32 +00:00
{% load commonmark %}
{% block schedule_content %}
2016-08-08 17:45:32 +00:00
<h3>{{ speaker.name }}</h3>
{{ speaker.biography|commonmark }}
<hr />
{% if speaker.events.exists %}
{% for event in speaker.events.all %}
<h3>
<small style="background-color: {{ event.event_type.color }}; border: 0; color: {% if event.event_type.light_text %}white{% else %}black{% endif %}; display: inline-block; padding: 5px;">
{{ event.event_type.name }}
</small><br>
<a href="{% url 'event_detail' camp_slug=camp.slug slug=event.slug %}">{{ event.title }}</a></h3>
2016-08-08 17:45:32 +00:00
{{ event.abstract|commonmark }}
{% if event.start and event.end and event.days.all.exists %}
At {{ event.start|date:"H:i" }} - {{ event.end|date:"H:i" }} on
{% for day in event.days.all %}{{ day.date|date:"l" }}{% if not forloop.last %}, {% endif %}{% endfor %}<br />
{% else %}
Not scheduled yet
{% endif %}
2016-08-08 17:45:32 +00:00
{% endfor %}
{% endif %}
2016-08-08 18:56:59 +00:00
{% endblock schedule_content %}