Fixed project list rendering

This commit is contained in:
neviyn 2021-03-31 10:09:47 +01:00
parent da45f0c633
commit ef621c7573

View File

@ -5,7 +5,7 @@
</head> </head>
<body> <body>
<form id="logoutForm" method="POST" th:action="@{/logout}"> <form id="logoutForm" method="POST" th:action="@{/logout}">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/> <input name="${_csrf.parameterName}" type="hidden" value="${_csrf.token}"/>
</form> </form>
<div th:replace="fragments :: navbar"></div> <div th:replace="fragments :: navbar"></div>
<div class="container"> <div class="container">
@ -16,9 +16,9 @@
</div> </div>
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-xl-6 col-md-8 col-sm-12"> <div class="col-xl-6 col-md-8 col-sm-12">
<div class="list-group" th:each="project : ${projects}"> <div class="list-group">
<!--suppress ThymeleafVariablesResolveInspection --> <a th:each="project : ${projects}" class="list-group-item list-group-item-action" th:href="@{~/project/{id}(id=${project.id})}"
<a class="list-group-item list-group-item-action" th:text="${project.title}" th:href="@{~/project/{id}(id=${project.id})}">Title th:text="${project.title}">Title
</a> </a>
</div> </div>
</div> </div>