show speaker pictures when available
This commit is contained in:
parent
63465ad784
commit
7e09945676
|
@ -5,7 +5,21 @@
|
||||||
|
|
||||||
<h3>{{ speaker.name }}</h3>
|
<h3>{{ speaker.name }}</h3>
|
||||||
|
|
||||||
|
{% if speaker.picture_large and speaker.picture_small %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8 text-container">
|
||||||
{{ speaker.biography|commonmark }}
|
{{ speaker.biography|commonmark }}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<a href="{% url 'speaker_picture' camp_slug=camp.slug slug=speaker.slug picture='large' %}" >
|
||||||
|
<img src="{% url 'speaker_picture' camp_slug=camp.slug slug=speaker.slug picture='thumbnail' %}" alt="{{ camp.title }} speaker picture of {{ speaker.name }}">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
{{ speaker.biography|commonmark }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
{% if speaker.events.exists %}
|
{% if speaker.events.exists %}
|
||||||
|
|
Loading…
Reference in a new issue