Refactor templates a bit
[tickle] / tickle / templates / tickle / route_breadcrumb_trail.html
1 <nav id='tickle-breadcrumb-trail'>
2   {% include 'tickle/area_breadcrumb.html' with area=route.area is_parent=True %}
3   <span class='tickle-breadcrumb-item'>
4     {% if is_parent %}
5       <a href='{% url "tickle:route-detail" pk=route.pk %}'>{{ route.name }}</a>
6     {% else %}
7       {{ route.name }}
8     {% endif %}
9   </span>
10 </nav>