-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from aroraumang/feature/task-4657
Added template for displaying tree node page #4657
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% extends 'webshop/catalog/node.html' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |