bornhack-website/src/program/templates/event_list.html

61 lines
2.0 KiB
HTML
Raw Normal View History

{% extends 'program_base.html' %}
{% load program %}
2016-08-08 17:36:13 +00:00
{% block program_content %}
{% if event_list %}
2017-03-26 13:05:29 +00:00
<p class="lead">
An alphabetical list of all talks, workshops, keynotes and other events
at {{ camp.title }}. The list does not include facilities like bar opening hours.
</p>
2016-08-08 17:36:13 +00:00
2017-03-26 13:05:29 +00:00
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Type</th>
<th>Title</th>
<th>Speakers</th>
<th>Scheduled</th>
{% if not user.is_anonymous %}
<th>Feedback</th>
{% endif %}
2017-03-26 13:05:29 +00:00
</tr>
</thead>
<tbody>
{% for event in event_list %}
{% if event.event_type.include_in_event_list %}
<tr>
<td>
<a href="{% url 'program:schedule_index' camp_slug=camp.slug %}#/?type={{ event.event_type.slug }}">
<i class="fas fa-{{ event.event_type.icon }} fa-lg" style="color: {{ event.event_type.color }};"></i> <span style="font-size: larger">{{ event.event_type.name }}</span>
2017-03-26 13:05:29 +00:00
</a>
</td>
<td>
<a href="{% url 'program:event_detail' camp_slug=camp.slug event_slug=event.slug %}">{{ event.title }}</a>
2017-03-26 13:05:29 +00:00
</td>
<td>
{% for speaker in event.speakers.all %}
<a href="{% url 'program:speaker_detail' camp_slug=camp.slug slug=speaker.slug %}">{{ speaker.name }}</a><br>
2017-03-26 13:05:29 +00:00
{% empty %}
N/A
{% endfor %}
</td>
<td>
{% for instance in event.instances.all %}
{{ instance.when.lower }}<br>
{% empty %}
<i>No instances scheduled yet</i>
{% endfor %}
</td>
{% if not user.is_anonymous %}
<td>{% feedbackbutton %}</td>
{% endif %}
2017-03-26 13:05:29 +00:00
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% else %}
2017-04-09 15:52:41 +00:00
<h2>No events for {{ camp.title }} yet!</h2>
{% endif %}
{% endblock program_content %}