Whoops forgot the template

This commit is contained in:
Víðir Valberg Guðmundsson 2016-08-07 15:50:37 +02:00
parent 502ce785d4
commit ae72167c89

View file

@ -1,10 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
{% extends 'program_base.html' %}
{% load commonmark %}
</body>
</html>
{% block program_content %}
<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>
{{ event.title }}
</h3>
<h4>
{{ event.start|date:"H:i" }} - {{ event.end|date:"H:i" }} at
{% for day in event.days.all %}{{ day.date|date:"l" }}{% if not forloop.last %}, {% endif %}{% endfor %}<br />
</h4>
{{ event.abstract|commonmark }}
<hr />
{% if event.speakers.exists %}
{% for speaker in event.speakers.all %}
<h3>{{ speaker }}</h3>
{{ speaker.biography|commonmark }}
{% endfor %}
{% endif %}
{% endblock %}