--- /dev/null
+{% if area.parent %}
+ {% include 'tickle/area_breadcrumb.html' with area=area.parent %} >
+{% else %}
+ <a href='{% url "tickle:area-list" %}'>All</a> >
+{% endif %}
+
+<a href='{% url "tickle:area-detail" pk=area.pk %}'>{{ area.name }}</a>
<html>
<head></head>
<body>
+ {% if area.parent %}
+ {% include 'tickle/area_breadcrumb.html' with area=area.parent %}
+ {% endif %}
+
<h1>{{ area.name }}</h1>
{% if area.children.count > 0 %}
</ul>
{% endif %}
+ <div>
+ {{ area.notes }}
+ </div>
+
{% if area.boulders.count > 0 %}
Boulders
<ul>
{% for boulder in area.boulders.all %}
- <li>{{ boulder.name }}</li>
+ <li>{% include 'tickle/boulder_list_item.html' %}</li>
{% endfor %}
</ul>
{% endif %}
Routes
<ul>
{% for route in area.routes.all %}
- <li>{{ route.name }}</li>
+ <li>{% include 'tickle/route_list_item.html' %}</li>
{% endfor %}
</ul>
{% endif %}
Boulders
<ul>
{% for boulder in area.boulders.all %}
- <li>{{ boulder.name }}</li>
+ <li>{% include 'tickle/boulder_list_item.html' %}</li>
{% endfor %}
</ul>
{% endif %}
Routes
<ul>
{% for route in area.routes.all %}
- <li>{{ route.name }}</li>
+ <li>{% include 'tickle/route_list_item.html' %}</li>
{% endfor %}
</ul>
{% endif %}
--- /dev/null
+<html>
+ <head></head>
+
+ <body>
+ {% include 'tickle/area_breadcrumb.html' with area=boulder.area %}
+ <header>
+ <h1>{{ boulder.name }}</h1>
+ <div>{{ boulder.difficulty }}</div>
+ <div>{{ boulder.notes }}</div>
+ </header>
+ </body>
+</html>
--- /dev/null
+<a href='{% url "tickle:boulder-detail" pk=boulder.pk %}'>{{ boulder.name }}</a>
--- /dev/null
+{% if route.pitches.count > 1 %}
+ <header>
+ <h2>
+ P{{ pitch.order }}
+
+ {% if pitch.name %}
+ {{ pitch.name }}
+ {% endif %}
+ </h2>
+
+ <div>{{ pitch.difficulty }}</div>
+ </header>
+{% endif %}
+
+{% if pitch.notes %}
+ <div>{{ pitch.notes }}</div>
+{% endif %}
--- /dev/null
+<html>
+ <head></head>
+
+ <body>
+ {% include 'tickle/area_breadcrumb.html' with area=route.area %}
+ <header>
+ <h1>{{ route.name }}</h1>
+ <div>{{ route.difficulty }}</div>
+ <div>{{ route.notes }}</div>
+
+ {% if route.pitches.count == 1 %}
+ {% include 'tickle/pitch_list_item.html' with pitch=route.pitches.first %}
+ {% else %}
+ <ul>
+ {% for pitch in route.pitches.all %}
+ <li>{% include 'tickle/pitch_list_item.html' %}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </header>
+ </body>
+</html>
--- /dev/null
+<a href='{% url "tickle:route-detail" pk=route.pk %}'>{{ route.name }}</a>
attempt_list = AttemptListView.as_view()
class BoulderDetailView(DetailView):
- pass
+ model = models.Boulder
boulder_detail = BoulderDetailView.as_view()
class RouteDetailView(DetailView):
- pass
+ model = models.Route
route_detail = RouteDetailView.as_view()
class TodoListView(ListView):