Fleshing out area templates, add boulder/route detail templates
[tickle] / tickle / templates / tickle / area_detail.html
1 <html>
2   <head></head>
3   <body>
4     {% if area.parent %}
5       {% include 'tickle/area_breadcrumb.html' with area=area.parent %}
6     {% endif %}
7
8     <h1>{{ area.name }}</h1>
9
10     {% if area.children.count > 0 %}
11       <ul>
12         {% for child in area.children.all %}
13           {% include 'tickle/area_list_item.html' with area=child %}
14         {% endfor %}
15       </ul>
16     {% endif %}
17
18     <div>
19       {{ area.notes }}
20     </div>
21
22     {% if area.boulders.count > 0 %}
23       Boulders
24       <ul>
25         {% for boulder in area.boulders.all %}
26           <li>{% include 'tickle/boulder_list_item.html' %}</li>
27         {% endfor %}
28       </ul>
29     {% endif %}
30
31     {% if area.routes.count > 0 %}
32       Routes
33       <ul>
34         {% for route in area.routes.all %}
35           <li>{% include 'tickle/route_list_item.html' %}</li>
36         {% endfor %}
37       </ul>
38     {% endif %}
39   </body>
40 </html>