67 lines
2.9 KiB
HTML
67 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" xmlns:th="http://www.thymeleaf.org"
|
|
th:replace="~{mopslayout :: html(name='Gruppenbildung', headcontent=~{:: headcontent}, navigation=~{:: navigation}, bodycontent=~{:: bodycontent})}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Eigene Gruppen</title>
|
|
<th:block th:fragment="headcontent">
|
|
<!-- Links, Skripts, Styles hier einfügen! -->
|
|
</th:block>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav class="navigation navigation-secondary" is="mops-navigation" th:fragment="navigation">
|
|
<ul>
|
|
<li class="active">
|
|
<a href="/" th:href="@{/gruppen2}">Gruppen</a>
|
|
</li>
|
|
<li>
|
|
<a href="/createGroup" th:href="@{/gruppen2/createGroup}">Erstellen</a>
|
|
</li>
|
|
<li>
|
|
<a href="/findGroup" th:href="@{/gruppen2/findGroup}">Suche</a>
|
|
</li>
|
|
<!-- Fix double point -->
|
|
<li th:if="${account.getRoles().contains('orga')}">
|
|
<a href="/createLecture" th:href="@{/gruppen2/createLecture}">Veranstaltung</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
<main th:fragment="bodycontent">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-10">
|
|
<h1>Meine Gruppen</h1>
|
|
<form action="/" method="get">
|
|
<h3 style="color: dodgerblue; font-weight: bold;">
|
|
<small style="font-weight: normal; color: black">Mitglied in </small>
|
|
<small style="font-weight: bold; color: black"
|
|
th:text="${gruppen.size()}"></small>
|
|
<small style="font-weight: normal; color: black"
|
|
th:if='${gruppen.size()==1}'> Gruppe.</small>
|
|
<small style="font-weight: normal; color: black"
|
|
th:if='${gruppen.size()!=1}'> Gruppen.</small>
|
|
</h3>
|
|
<br>
|
|
<div th:each="gruppe: ${gruppen}">
|
|
<div class="shadow-sm p-4" style="border: none; border-radius: 5px; background: aliceblue">
|
|
<h3 style="color: dodgerblue; font-weight: bold;">
|
|
<a th:href="@{/gruppen2/details/{id}(id=${gruppe.getId()})}"
|
|
th:text="${gruppe.getTitle()}"></a>
|
|
</h3>
|
|
<div class="shadow-sm p-4" style="background: white">
|
|
<p style="overflow-wrap: break-word"
|
|
th:text="${#strings.abbreviate(gruppe.getDescription(),300)}"></p>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|