Don't recurse through the areas on the area list
[tickle] / tickle / templates / tickle / area_list_item.html
diff --git a/tickle/templates/tickle/area_list_item.html b/tickle/templates/tickle/area_list_item.html
deleted file mode 100644 (file)
index 9545c53..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<li>
-  <header>
-    <a href='{% url "tickle:area-detail" pk=area.pk %}'>{{ area.name }}</a>
-  </header>
-  {% if area.children.count > 0 %}
-    <ul>
-      {% for child in area.children.all %}
-        {% include 'tickle/area_list_item.html' with area=child %}
-      {% endfor %}
-    </ul>
-  {% endif %}
-
-  {% if area.boulders.count > 0 %}
-    Boulders
-    <ul>
-      {% for boulder in area.boulders.all %}
-        <li>{% include 'tickle/boulder_list_item.html' %}</li>
-      {% endfor %}
-    </ul>
-  {% endif %}
-
-  {% if area.routes.count > 0 %}
-    Routes
-    <ul>
-      {% for route in area.routes.all %}
-        <li>{% include 'tickle/route_list_item.html' %}</li>
-      {% endfor %}
-    </ul>
-  {% endif %}
-</li>