Skip to content

Commit

Permalink
Merge pull request #70 from aroraumang/feature/task-4657
Browse files Browse the repository at this point in the history
Added template for displaying tree node page #4657
  • Loading branch information
Sharoon Thomas committed Jun 28, 2014
2 parents a239c80 + d65fcaf commit df3479c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/catalog/node.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends 'webshop/catalog/node.html' %}
39 changes: 39 additions & 0 deletions templates/webshop/catalog/node.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% extends 'base.jinja' %}

{% from '_helpers.jinja' import render_pagination, render_product_list %}

{% block breadcrumb %}
{{ super() }}
<li>
<a href="{{ url_for('product.tree_node.render', active_id=node.id, slug=node.slug) }}">{{ node.name }}</a>
</li>
{% endblock breadcrumb %}

{% block main %}
<section>
<div class="container">
<!-- category page -->
<!-- Content bar -->
<div class="col-md-12 product-list">
<div class="row">
<div class="col-md-9">
<h3 class="list-heading">{{ node.rec_name }}</h3>
</div>
</div>
<div class="masonry js-masonry" data-masonry-options='{ "columnWidth": ".category-list", "itemSelector": ".product-item", "isFitWidth": true }'>
<div class="category-list"></div>
{% for product in products %}
{{ render_product_list(product) }}
{% endfor %}
</div>
{{ render_pagination(products, endpoint='product.tree_node.render', active_id=node.id, slug=node.slug) }}
</div>
</div>
</div>
</section>
{% endblock main%}

{% block script_tags %}
{{ super() }}
<script src="{{ url_for('nereid.webshop.send_static_file', filename='js/masonry.pkgd.min.js') }}" ></script>
{% endblock script_tags %}

0 comments on commit df3479c

Please sign in to comment.