Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit b15959e

Browse files
committed
add if condition to view_event
1 parent cb84f68 commit b15959e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/templates/pages/view_event.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,14 @@ <h1>{{ event.title }}</h1>
195195
<div class="col-md-12 first">
196196
<hr>
197197
</div>
198+
{% if nearby %}
198199
<div class="col-md-12 first">
199200
<h3>Nearby events:</h3>
200201
{% for event in nearby %}
201202
{% include 'layout/near_event_tile.html' %}
202203
{% endfor %}
203204
</div>
205+
{% endif %}
204206
</div>
205207
{% endblock content %}
206208

0 commit comments

Comments
 (0)