Skip to content

Commit

Permalink
Merge pull request #67 from MatejCech20/issue64
Browse files Browse the repository at this point in the history
Display number of products for product subcategory
  • Loading branch information
Abdur-rahmaanJ authored Nov 3, 2022
2 parents 04fec2b + f9b3816 commit be0f64b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h3>Category: {{ category.name }}</h3>
<li class="list-group-item">
<img style="width:50px; height: 50px;" {%set filename_='default' %} {%if subcategory.resources%} filename_=subcategory.resources[0].filename {%endif%} src="{{url_for('category.subcategory_image', filename=filename_)}}">
<a href="{{url_for('product.list', subcategory_id=subcategory.id)}}" class="btn btn-info">
view products
view products ({{subcategory.get_num_products()}})
</a>
{{subcategory.name}}
</li>
Expand Down

0 comments on commit be0f64b

Please sign in to comment.