fix copy paste error which makes urls not be shown on event detail page, and fix headline

This commit is contained in:
Thomas Steen Rasmussen 2018-07-17 23:27:20 +02:00
parent 340a3eb58c
commit 00c053829e

View file

@ -23,8 +23,8 @@
<hr>
<h3>URLs for {{ event.title }}</h3>
{% if speaker.urls.exists %}
{% for url in speaker.urls.all %}
{% if event.urls.exists %}
{% for url in event.urls.all %}
<p><i class="{{ url.urltype.icon }}"></i> <b>{{ url.urltype }}</b>: <a href="{{ url.url }}" target="_blank" data-toggle="tooltip" title="{{ url.urltype }}">{{ url.url }}</a></p>
{% endfor %}
{% else %}
@ -45,7 +45,7 @@
<hr>
{% if event.speakers.exists %}
<h4>Speakers</h4>
<h4>{{ event.event_type.host_title }}(s):</h4>
<div class="list-group">
{% for speaker in event.speakers.all %}
<h4><a href="{% url 'program:speaker_detail' camp_slug=camp.slug slug=speaker.slug %}" class="list-group-item">{{ speaker.name }}</a></h4>