Fix an issue with breadcrumb trails
[tickle] / tickle / templates / tickle / area_detail.html
1 {% extends 'tickle/base.html' %}
2
3 {% block tickle_title_name %}{{ area.name }}{% endblock %}
4 {% block tickle_header_name %}{{ area.name }}{% endblock %}
5
6 {% block tickle_nav %}
7   {% include 'tickle/area_breadcrumb_trail.html' %}
8 {% endblock %}
9
10 {% block tickle_main %}
11   {% if area.children.count > 0 %}
12     <ul>
13       {% for child in area.children.all %}
14         {% include 'tickle/area_list_item.html' with area=child %}
15       {% endfor %}
16     </ul>
17   {% endif %}
18
19   <div>
20     {{ area.notes }}
21   </div>
22
23   {% if area.boulders.count > 0 %}
24     Boulders
25     <ul>
26       {% for boulder in area.boulders.all %}
27         <li>{% include 'tickle/boulder_list_item.html' %}</li>
28       {% endfor %}
29     </ul>
30   {% endif %}
31
32   {% if area.routes.count > 0 %}
33     Routes
34     <ul>
35       {% for route in area.routes.all %}
36         <li>{% include 'tickle/route_list_item.html' %}</li>
37       {% endfor %}
38     </ul>
39   {% endif %}
40 {% endblock %}