Start adding views
[tickle] / tickle / templates / tickle / area_detail.html
1 <html>
2   <head></head>
3   <body>
4     <h1>{{ area.name }}</h1>
5
6     {% if area.children.count > 0 %}
7       <ul>
8         {% for child in area.children.all %}
9           {% include 'tickle/area_list_item.html' with area=child %}
10         {% endfor %}
11       </ul>
12     {% endif %}
13
14     {% if area.boulders.count > 0 %}
15       Boulders
16       <ul>
17         {% for boulder in area.boulders.all %}
18           <li>{{ boulder.name }}</li>
19         {% endfor %}
20       </ul>
21     {% endif %}
22
23     {% if area.routes.count > 0 %}
24       Routes
25       <ul>
26         {% for route in area.routes.all %}
27           <li>{{ route.name }}</li>
28         {% endfor %}
29       </ul>
30     {% endif %}
31   </body>
32 </html>