-
Notifications
You must be signed in to change notification settings - Fork 0
/
event.html
52 lines (39 loc) · 1.12 KB
/
event.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% extends "base.html" %}
{% from "macros.html" import dj_table, recording_table %}
{% block title %}{{ obj.name }} - Events{% endblock %}
{% block bodyclass %}event{% endblock %}
{% block event_nav_class %}active{% endblock %}
{% block body %}
<h2>{{ obj.name }}</h2>
<p>
<img class="hide-if-broken promo" src="{{ root }}media/event/{{ obj.slug }}.jpg" alt="Promotional image for event: {{ obj.name }}">
</p>
{% if obj.description %}
<div class="description">
{{ obj.description }}
</div>
{% endif %}
<dl>
{% if obj.location %}
<dt>Location</dt>
<dd>{{ obj.location }}</dd>
{% endif %}
{% if obj.city %}
<dt>City</dt>
<dd><a href="{{ root }}city/{{ obj.city }}.html">{{ obj.city|slugname('city') }}</a></dd>
{% endif %}
{% if obj.djs %}
<dt>DJs</dt>
<dd>
{{ dj_table(obj.djs|slugobjects('dj')) }}
</dd>
{% endif %}
{% if obj.recordings %}
<dt>Recordings</dt>
<dd>
{{ recording_table(obj.recordings|slugobjects('recording')) }}
</dd>
{% endif %}
</dl>
{% include "comments.html" %}
{% endblock %}