Refactor templates a bit
[tickle] / tickle / templates / tickle / route_breadcrumb_trail.html
diff --git a/tickle/templates/tickle/route_breadcrumb_trail.html b/tickle/templates/tickle/route_breadcrumb_trail.html
new file mode 100644 (file)
index 0000000..cf892ed
--- /dev/null
@@ -0,0 +1,10 @@
+<nav id='tickle-breadcrumb-trail'>
+  {% include 'tickle/area_breadcrumb.html' with area=route.area is_parent=True %}
+  <span class='tickle-breadcrumb-item'>
+    {% if is_parent %}
+      <a href='{% url "tickle:route-detail" pk=route.pk %}'>{{ route.name }}</a>
+    {% else %}
+      {{ route.name }}
+    {% endif %}
+  </span>
+</nav>