Added separator on Thymeleaf ownerList to better view

This commit is contained in:
MarcinW 2018-08-10 20:22:16 +02:00
parent 60105d5d9a
commit 6a7c76deb3

View file

@ -24,7 +24,7 @@
<td th:text="${owner.address}"/> <td th:text="${owner.address}"/>
<td th:text="${owner.city}"/> <td th:text="${owner.city}"/>
<td th:text="${owner.telephone}"/> <td th:text="${owner.telephone}"/>
<td><span th:each="pet : ${owner.pets}" th:text="${pet.name} "/></td> <td><span th:each="pet, iterPet : ${owner.pets}" th:text="!${iterPet.last} ? ${pet.name} + ', ':${pet.name}"></span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>