Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix django template tags

weronkaccb332f5d610
diff --git a/templates/userprofile/details.html b/templates/userprofile/details.html
index 8a2a105ea4..0544edc18e 100644
--- a/templates/userprofile/details.html
+++ b/templates/userprofile/details.html
@@ -34,9 +34,7 @@
<div class="tab-content col-lg-10 offset-lg-1">
<div class="tab-pane active" id="orders" role="tabpanel">
<div id="accordion" role="tablist" aria-multiselectable="true">
- {% if orders|length == 0 %}
- <h3 class="text-sm-center userprofile__orders-empty">{% trans "There are not any completed orders yet." %}</h3>
- {% else %}
+ {% if orders|length %}
<div class="userprofile__orders-header">
<div class="row">
<div class="col-md-2 col-3"><h3>{% trans "Order" %}</h3></div>
@@ -69,6 +67,8 @@
</div>
</div>
{% endfor %}
+ {% else %}
+ <h3 class="text-sm-center userprofile__orders-empty">{% trans "There are not any completed orders yet." %}</h3>
{% endif %}
</div>
</div>