Skip to content

Commit

Permalink
Merge pull request #133 from goyal1092/feature/task-5665
Browse files Browse the repository at this point in the history
Added breadcrumbs for node template #5665
  • Loading branch information
Sharoon Thomas committed Sep 5, 2014
2 parents 488b107 + 4d25d0a commit cf64308
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/webshop/catalog/node.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
{% from '_helpers.jinja' import render_pagination, render_product_list %}

{% block breadcrumb %}
{{ super() }}
<li>
{{ node.rec_name }}
<li><a href="{{ url_for('nereid.website.home') }}">Home</a></li>
{% for url, node in make_tree_crumbs(node=node, add_home=False)[1:] %}
<li><a href="{{ url }}">{{ node }}</a></li>
{% endfor %}
</li>
{% endblock breadcrumb %}

Expand Down

0 comments on commit cf64308

Please sign in to comment.