show speakers on event detail page where relevant, fixes #91
This commit is contained in:
parent
d73222ec9a
commit
fa9584dcc7
|
@ -7,13 +7,6 @@
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>
|
<p>
|
||||||
{{ event.abstract|commonmark }}
|
{{ event.abstract|commonmark }}
|
||||||
{% if event.speakers.exists %}
|
|
||||||
<hr>
|
|
||||||
{% for speaker in event.speakers.all %}
|
|
||||||
<h4><a href="{% url 'speaker_detail' camp_slug=camp.slug slug=speaker.slug %}">{{ speaker }}</a></h4>
|
|
||||||
{{ speaker.biography|commonmark }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -26,7 +19,17 @@
|
||||||
No instances scheduled yet
|
No instances scheduled yet
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</h4>
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
{% if event.speaker_set.exists %}
|
||||||
|
<h4>Speakers</h4>
|
||||||
|
<div class="list-group">
|
||||||
|
{% for speaker in event.speaker_set.all %}
|
||||||
|
<h4><a href="{% url 'speaker_detail' camp_slug=camp.slug slug=speaker.slug %}" class="list-group-item">{{ speaker.name }}</a></h4>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock program_content %}
|
{% endblock program_content %}
|
||||||
|
|
Loading…
Reference in a new issue