if no orders show hint

This commit is contained in:
Hannes Huber 2020-06-14 17:56:09 +02:00
parent 3bb3c5b513
commit fa610cae3b
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@
<main class="sidebar-layout content-width">
<nav th:replace="fragments/customer :: sidebar"></nav>
<div class="content-width detailflex">
<div th:each="order: ${orders}">
<div th:if="${orders.isEmpty()}">
<h2>Mit diesem Account wurden noch keine Bestellungen getätigt.</h2>
</div>
<div th:if="${!orders.isEmpty()}" th:each="order: ${orders}">
<h2 id="20202701" th:text="|Bestellung vom ${order.formatCreated()}" />
<div>
<table class="key-value">