21 lines
873 B
HTML
21 lines
873 B
HTML
<!doctype html>
|
||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||
<head><meta charset="utf-8"><title>Projects</title></head>
|
||
<body>
|
||
<main>
|
||
<h1>Projects</h1>
|
||
<a th:if="${canCreateProject}" href="/projects/new">Create Project</a>
|
||
<p th:if="${#lists.isEmpty(projects)}">No authorized Projects.</p>
|
||
<table th:unless="${#lists.isEmpty(projects)}">
|
||
<caption>Authorized Projects</caption>
|
||
<thead><tr><th scope="col">Name</th><th scope="col">Status</th><th scope="col">Dates</th></tr></thead>
|
||
<tbody><tr th:each="project : ${projects}">
|
||
<td><a th:href="@{/projects/{id}(id=${project.id})}" th:text="${project.name}">Project</a></td>
|
||
<td th:text="${project.status}">PLANNED</td>
|
||
<td><span th:text="${project.startDate}">Start</span> – <span th:text="${project.endDate}">End</span></td>
|
||
</tr></tbody>
|
||
</table>
|
||
</main>
|
||
</body>
|
||
</html>
|