Use base templates
[tickle] / tickle / templates / tickle / route_detail.html
1 {% extends 'tickle/base.html' %}
2
3 {% block tickle_title_name %}{{ route.name }}{% endblock %}
4 {% block tickle_header_name %}{{ route.name }}{% endblock %}
5
6 {% block tickle_nav %}
7   {% include 'tickle/area_breadcrumb.html' with area=route.area is_parent=True %}
8 {% endblock %}
9
10 {% block tickle_extra_header %}
11   <h2>{{ route.difficulty }}</h2>
12 {% endblock %}
13
14 {% block tickle_main %}
15   <div>{{ route.notes }}</div>
16
17   {% if route.pitches.count == 1 %}
18     {% include 'tickle/pitch_list_item.html' with pitch=route.pitches.first %}
19   {% else %}
20     <ul>
21       {% for pitch in route.pitches.all %}
22         <li>{% include 'tickle/pitch_list_item.html' %}</li>
23       {% endfor %}
24     </ul>
25   {% endif %}
26 {% endblock %}