Skip to content

Commit

Permalink
Merge 0076831 into a239c80
Browse files Browse the repository at this point in the history
  • Loading branch information
aroraumang committed Jun 27, 2014
2 parents a239c80 + 0076831 commit 29785ed
Show file tree
Hide file tree
Showing 2 changed files with 50 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' %}
49 changes: 49 additions & 0 deletions templates/webshop/catalog/node.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% 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-10 product-list">
<div class="row">
<div class="col-md-9">
<h3 class="list-heading">{{ node.rec_name }}</h3>
</div>
<!--Filter Option -->
<div class="col-md-3">
<select class="form-control select-sort">
<option>{{ _('Discount') }}</option>
<option>{{ _('Low Price First') }}</option>
<option>{{ _('High Price First') }}</option>
<option>{{ _('Popularity') }}</option>
<option>{{ _('What\'s New') }}</option>
</select>
</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 29785ed

Please sign in to comment.