<p th:text="|Commande no : ${expedition.idCommande}|" class="font-weight-bold"></p>
<p th:text="${expedition.etat}"></p>
expedition.etat is an int which takes value either 0, 1, or 2
I`d like to have the second paragraph to have inner text "In preparation", "Sent", or "Delivered", instead of 0, 1, 2.
I suppose i could put 3 paragraphs with each a th:if and th:text to solve the problem; Or maybe I could add a getStatusAsText method in my expedition object; but isn't there a better way to implement this ?