Fleshing out area templates, add boulder/route detail templates
[tickle] / tickle / templates / tickle / route_detail.html
diff --git a/tickle/templates/tickle/route_detail.html b/tickle/templates/tickle/route_detail.html
new file mode 100644 (file)
index 0000000..114504b
--- /dev/null
@@ -0,0 +1,22 @@
+<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>