1

introduce additional fragments

This commit is contained in:
Christoph
2020-04-10 16:56:32 +02:00
parent 2cda0f05a9
commit 4c6aa407b4
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<!DOCTYPE HTML>
<!--suppress ALL -->
<html lang="de" xmlns:th="http://www.thymeleaf.org">
<!--Grouptype Badges-->
<th:block th:fragment="badges">
<span class="badge badge-pill private float-right"
th:if='${group.getVisibility() == private}'>Privat</span>
<span class="badge badge-pill public float-right" th:if="${group.getVisibility() == public}"
th:unless="${group.getType() == lecture}">Öffentlich</span>
<span class="badge badge-pill lecture float-right"
th:if='${group.getType() == lecture}'>Veranstaltung</span>
<span class="badge badge-pill parent float-right"
th:if="${parent != null}" th:text="${parent.getTitle()}">Parent</span>
<!--Needs completly projected (cached) groups-->
<!--<span class="badge badge-success float-right"
th:if='${group.getRoles().get(user.getId()) == admin}'>Admin</span>-->
</th:block>