user fragment for groupcontent plus link
This commit is contained in:
@ -48,6 +48,19 @@
|
|||||||
<!--<div class="body-text-in" th:if="${group.getMembers().contains(user.getId())}"></div>-->
|
<!--<div class="body-text-in" th:if="${group.getMembers().contains(user.getId())}"></div>-->
|
||||||
</th:block>
|
</th:block>
|
||||||
|
|
||||||
|
<th:block th:fragment="groupcontentlink">
|
||||||
|
<div class="content-heading row">
|
||||||
|
<a class="link col" th:href="@{/gruppen2/details/{id}(id=${group.getId()})}"
|
||||||
|
th:text="${group.getTitle()}"></a>
|
||||||
|
|
||||||
|
<span th:replace="~{fragments/groups :: badges}"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content-text-in">
|
||||||
|
<span th:text="${group.getDescription()}"></span>
|
||||||
|
</div>
|
||||||
|
</th:block>
|
||||||
|
|
||||||
<!--Buttonbar zum Gruppe beitreten-->
|
<!--Buttonbar zum Gruppe beitreten-->
|
||||||
<th:block th:fragment="joingroup">
|
<th:block th:fragment="joingroup">
|
||||||
<div class="content-heading">
|
<div class="content-heading">
|
||||||
|
@ -13,51 +13,23 @@
|
|||||||
|
|
||||||
<h1 class="def-cursor">Meine Gruppen</h1>
|
<h1 class="def-cursor">Meine Gruppen</h1>
|
||||||
|
|
||||||
<!--TODO: Fragment-->
|
|
||||||
<!--Gruppenliste belegte Gruppen-->
|
<!--Gruppenliste belegte Gruppen-->
|
||||||
<div th:unless="${lectures.isEmpty()}">
|
<div th:unless="${lectures.isEmpty()}">
|
||||||
<h3 class="def-cursor">Veranstaltungen</h3>
|
<h3 class="def-cursor">Veranstaltungen</h3>
|
||||||
<div class="content" th:each="group: ${lectures}">
|
<div class="content" th:each="group: ${lectures}"
|
||||||
<div class="content-heading row">
|
th:insert="fragments/groups :: groupcontentlink"></div>
|
||||||
<a class="link col" th:href="@{/gruppen2/details/{id}(id=${group.getId()})}"
|
|
||||||
th:text="${group.getTitle()}"></a>
|
|
||||||
|
|
||||||
<span th:replace="~{fragments/groups :: badges}"></span>
|
|
||||||
</div>
|
|
||||||
<div class="content-text-in">
|
|
||||||
<span th:text="${group.getDescription()}"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div th:unless="${publics.isEmpty()}">
|
<div th:unless="${publics.isEmpty()}">
|
||||||
<h3 class="def-cursor">Öffentliche Gruppen</h3>
|
<h3 class="def-cursor">Öffentliche Gruppen</h3>
|
||||||
<div class="content" th:each="group: ${publics}">
|
<div class="content" th:each="group: ${publics}"
|
||||||
<div class="content-heading row">
|
th:insert="fragments/groups :: groupcontentlink"></div>
|
||||||
<a class="link col" th:href="@{/gruppen2/details/{id}(id=${group.getId()})}"
|
|
||||||
th:text="${group.getTitle()}"></a>
|
|
||||||
|
|
||||||
<span th:replace="~{fragments/groups :: badges}"></span>
|
|
||||||
</div>
|
|
||||||
<div class="content-text-in">
|
|
||||||
<span th:text="${group.getDescription()}"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div th:unless="${privates.isEmpty()}">
|
<div th:unless="${privates.isEmpty()}">
|
||||||
<h3 class="def-cursor">Private Gruppen</h3>
|
<h3 class="def-cursor">Private Gruppen</h3>
|
||||||
<div class="content" th:each="group: ${privates}">
|
<div class="content" th:each="group: ${privates}"
|
||||||
<div class="content-heading row">
|
th:insert="fragments/groups :: groupcontentlink"></div>
|
||||||
<a class="link col" th:href="@{/gruppen2/details/{id}(id=${group.getId()})}"
|
|
||||||
th:text="${group.getTitle()}"></a>
|
|
||||||
|
|
||||||
<span th:replace="~{fragments/groups :: badges}"></span>
|
|
||||||
</div>
|
|
||||||
<div class="content-text-in">
|
|
||||||
<span th:text="${group.getDescription()}"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@ -27,18 +27,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Ergebnisliste-->
|
<!--Ergebnisliste-->
|
||||||
<div class="content" th:each="group: ${groups}">
|
<div class="content" th:each="group: ${groups}"
|
||||||
<div class="content-heading row">
|
th:insert="fragments/groups :: groupcontentlink"></div>
|
||||||
<span th:replace="~{fragments/groups :: badges}"></span>
|
|
||||||
|
|
||||||
<a class="link col" th:href="@{/gruppen2/details/{id}(id=${group.getId()})}"
|
|
||||||
th:text="${group.getTitle()}"></a>
|
|
||||||
</div>
|
|
||||||
<div class="content-text-in">
|
|
||||||
<span th:text="${group.getDescription()}"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user