You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
525 B
20 lines
525 B
{% extends "cash/base.html" %} |
|
{% load static %} |
|
{% load i18n %} |
|
|
|
|
|
{% block content %} |
|
|
|
<ul class="nav nav-tabs"> |
|
<li {% if not category %}class="active"{% endif %}><a href="{% url 'products' %}">{% trans "All categories" %}</a></li> |
|
{% for c in categories %} |
|
<li {% if c == category %}class="active"{% endif %}><a href="{% url 'products' %}{{c.id}}">{{ c.name }}</a></li> |
|
{% endfor %} |
|
</ul> |
|
|
|
<!-- Ugly workaround --> |
|
<br/> |
|
|
|
{% include "cash/includes/product_list.html" with products=product_list only %} |
|
|
|
{% endblock %}
|
|
|