Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Show appropriate message
Adam Bogdał96293fe7912b
diff --git a/saleor/dashboard/templates/dashboard/product/list.html b/saleor/dashboard/templates/dashboard/product/list.htmlindex 9d3e42612b..e34798b8b9 100644--- a/saleor/dashboard/templates/dashboard/product/list.html+++ b/saleor/dashboard/templates/dashboard/product/list.html@@ -42,22 +42,26 @@{% block content %}<div class="row"><div class="col s12">- <ul class="collection list">- {% for product in products %}- <li class="collection-item avatar list-item">- {% if product.images.exists %}- <img src="{{ product.images.first.image.crop.50x50 }}" alt="" class="circle teal">- {% else %}- <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="circle teal">- {% endif %}- <a class="title" href="{% url 'dashboard:product-update' pk=product.pk %}">- <span class="list-item-name">{{ product.name }}</span>- </a>- <p class="list-item-price">{% gross product.price %}</p>- </li>- {% endfor %}- </ul>- {% include "dashboard/includes/_pagination.html" with page_obj=products %}+ {% if products %}+ <ul class="collection list">+ {% for product in products %}+ <li class="collection-item avatar list-item">+ {% if product.images.exists %}+ <img src="{{ product.images.first.image.crop.50x50 }}" alt="" class="circle teal">+ {% else %}+ <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="circle teal">+ {% endif %}+ <a class="title" href="{% url 'dashboard:product-update' pk=product.pk %}">+ <span class="list-item-name">{{ product.name }}</span>+ </a>+ <p class="list-item-price">{% gross product.price %}</p>+ </li>+ {% endfor %}+ </ul>+ {% include "dashboard/includes/_pagination.html" with page_obj=products %}+ {% else %}+ <p>{% trans "No products found." %}</p>+ {% endif %}</div></div><div id="modal-product-class" class="modal">