Add event metadata information to non-js event pages. Fix #275.
This commit is contained in:
parent
8fb9e60601
commit
31c1f97036
|
@ -12,6 +12,7 @@
|
|||
<th>When?</th>
|
||||
<th>What?</th>
|
||||
<th>Where?</th>
|
||||
<th>Type</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
@ -20,14 +21,18 @@
|
|||
|
||||
{% ifchanged instance.when.lower.date %}
|
||||
<tr>
|
||||
<td colspan=3><strong>{{ instance.when.lower.date|date:"l Y-m-d" }}</strong></td>
|
||||
<td colspan=4><strong>{{ instance.when.lower.date|date:"l Y-m-d" }}</strong></td>
|
||||
</tr>
|
||||
{% endifchanged %}
|
||||
|
||||
<tr>
|
||||
<td>{{ instance.when.lower|date:"H:i" }}-{{ instance.when.upper|date:"H:i" }}</td>
|
||||
<td><a href="{% url 'program:event_detail' camp_slug=camp.slug slug=instance.event.slug %}">{{ instance.event.title }}</a></td>
|
||||
<td>
|
||||
<i class="fas fa-video{% if not instance.event.video_recording %}-slash{% endif %}"></i>
|
||||
<a href="{% url 'program:event_detail' camp_slug=camp.slug slug=instance.event.slug %}">{{ instance.event.title }}</a>
|
||||
</td>
|
||||
<td>{{ instance.location.name }}</td>
|
||||
<td>{{ instance.event.event_type }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<div class="row">
|
||||
<noscript>
|
||||
<a href="{% url "program:noscript_schedule_index" camp_slug=camp.slug %}" class="btn btn-primary">
|
||||
<a href="{% url 'program:noscript_schedule_index' camp_slug=camp.slug %}" class="btn btn-primary">
|
||||
Back to noscript schedule
|
||||
</a>
|
||||
<hr />
|
||||
|
@ -20,6 +20,13 @@
|
|||
{{ event.abstract|untrustedcommonmark }}
|
||||
</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<h4>Metadata</h4>
|
||||
<strong>To be recorded?</strong>: {{ event.video_recording|yesno:"Yes,No" }}<br />
|
||||
{% if event.video_url %}
|
||||
<strong>Video:</strong> <a href="{{ event.video_url }}">Watch video recording</a>
|
||||
{% endif %}
|
||||
<hr>
|
||||
|
||||
<h4>URLs for {{ event.title }}</h4>
|
||||
|
|
Loading…
Reference in a new issue