Skip to content
Snippets Groups Projects

Fix homepage with archived editions

2 files
+ 7
9
Compare changes
  • Side-by-side
  • Inline

Files

@@ -226,13 +226,13 @@
<h3>Archived courses</h3>
<ul class="list-group">
<li class="list-group-item" th:each="role : ${archivedRoles}"
th:with="edition = ${editions.get(role.edition.id)}"
th:if="${!edition.isArchived}">
<a th:href="@{/edition/{id}(id=${edition.id})}"
th:text="|${edition.course.name} (${edition.name})|"></a>
<span th:text="${'(' + @roleDTOService.typeDisplayName(role.type.toString()) + ')'}"></span>
</li>
<th:block th:each="role : ${archivedRoles}" th:with="edition = ${editions.get(role.edition.id)}">
<li class="list-group-item">
<a th:href="@{/edition/{id}(id=${edition.id})}"
th:text="|${edition.course.name} (${edition.name})|"></a>
<span th:text="${'(' + @roleDTOService.typeDisplayName(role.type.toString()) + ')'}"></span>
</li>
</th:block>
</ul>
</div>
</div>
Loading