diff --git a/pinaxcon/templates/symposion/schedule/_grid.html b/pinaxcon/templates/symposion/schedule/_grid.html
index eee236b7..5c24386d 100644
--- a/pinaxcon/templates/symposion/schedule/_grid.html
+++ b/pinaxcon/templates/symposion/schedule/_grid.html
@@ -7,14 +7,18 @@
{{ room.name }} |
{% endfor %}
-
- |
- {% for room in timetable.rooms %}
- {% with room|trackname:timetable.day as track_name %}
- {% if track_name %} {{ track_name }}{% endif %} |
- {% endwith %}
- {% endfor %}
-
+ {% with timetable|day_has_tracks:timetable.day as has_tracks %}
+ {% if has_tracks %}
+
+ |
+ {% for room in timetable.rooms %}
+ {% with room|trackname:timetable.day as track_name %}
+ {% if track_name %} {{ track_name }}{% endif %} |
+ {% endwith %}
+ {% endfor %}
+
+ {% endif %}
+ {% endwith %}
{% for row in timetable %}
diff --git a/pinaxcon/templatetags/lca2018_tags.py b/pinaxcon/templatetags/lca2018_tags.py
index 7ede67eb..380df581 100644
--- a/pinaxcon/templatetags/lca2018_tags.py
+++ b/pinaxcon/templatetags/lca2018_tags.py
@@ -78,6 +78,14 @@ def gst(amount):
def conference_name():
return conference_models.Conference.objects.get(id=CONFERENCE_ID).title
+@register.filter()
+def day_has_tracks(timetable, day):
+ try:
+ track_names = day.track_set.all()
+ has_tracks = True
+ except Track.DoesNotExist:
+ has_tracks = False
+ return len(track_names)
@register.filter()
def trackname(room, day):