Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove commented code
Michał Ociepka84691deceb0c
diff --git a/saleor/dashboard/templates/dashboard/discount/sale_list.html b/saleor/dashboard/templates/dashboard/discount/sale_list.htmlindex c8bbee93b1..2de2d26abf 100644--- a/saleor/dashboard/templates/dashboard/discount/sale_list.html+++ b/saleor/dashboard/templates/dashboard/discount/sale_list.html@@ -24,32 +24,6 @@{% block menu_discounts_class %} active{% endblock %}-{#{% block content %}#}-{# <div class="row">#}-{# <div class="col s12">#}-{# {% if sales %}#}-{# <ul class="collection list list--attributes">#}-{# {% for sale in sales %}#}-{# <li class="collection-item list-item list--attributes-item list-item--two-lines">#}-{# <a class="list-item-name" href="{% url 'dashboard:sale-update' pk=sale.pk %}">{{ sale }}</a>#}-{# <p class="list-item-desc">#}-{# {% if sale.sale %}#}-{# {% gross sale.sale %}#}-{# {% endif %}#}-{# {% if sale.percentage_sale %}#}-{# {{ sale.percentage_sale }} %#}-{# {% endif %}#}-{# </p>#}-{# </li>#}-{# {% endfor %}#}-{# </ul>#}-{# {% else %}#}-{# <p>{% trans "No sales found." %}</p>#}-{# {% endif %}#}-{# </div>#}-{# </div>#}-{#{% endblock %}#}-{% block content %}{% if sales %}<div class="card">diff --git a/saleor/dashboard/templates/dashboard/discount/voucher_list.html b/saleor/dashboard/templates/dashboard/discount/voucher_list.htmlindex f22117b903..05573a452b 100644--- a/saleor/dashboard/templates/dashboard/discount/voucher_list.html+++ b/saleor/dashboard/templates/dashboard/discount/voucher_list.html@@ -49,15 +49,15 @@<td>{{ voucher.discount_value }}{{ voucher.get_discount_value_type_display }}</td><td>{{ voucher.start_date }}</td>- <td>{{ voucher.end_date|default:"-" }}</td>+ <td>{{ voucher.end_date|default_if_none:"-" }}</td><td>- {% if voucher.usage_limit %}+ {% if voucher.usage_limit or voucher.usage_limit == 0 %}{{ voucher.used }}/{{ voucher.usage_limit }}{% else %}{{ voucher.used }}{% endif %}</td>- <td>{{ voucher.get_apply_to_display|default:"-" }}</td>+ <td>{{ voucher.get_apply_to_display|default_if_none:"-" }}</td><td>{% if voucher.limit %}{% gross voucher.limit %}