Fleshing out area templates, add boulder/route detail templates
[tickle] / tickle / templates / tickle / route_detail.html
1 <html>
2   <head></head>
3
4   <body>
5     {% include 'tickle/area_breadcrumb.html' with area=route.area %}
6     <header>
7       <h1>{{ route.name }}</h1>
8       <div>{{ route.difficulty }}</div>
9       <div>{{ route.notes }}</div>
10
11       {% if route.pitches.count == 1 %}
12         {% include 'tickle/pitch_list_item.html' with pitch=route.pitches.first %}
13       {% else %}
14         <ul>
15           {% for pitch in route.pitches.all %}
16             <li>{% include 'tickle/pitch_list_item.html' %}</li>
17           {% endfor %}
18         </ul>
19       {% endif %}
20     </header>
21   </body>
22 </html>