summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/report.html
blob: a9d68938a2f947a8d7eda4fa7107c80c0e37625d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="de" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>ETL-Prozessor</title>
    <link rel="stylesheet" th:href="@{/main.css}"/>
</head>
<body>
    <div th:replace="~{fragments.html :: nav}"></div>
    <main>

        <h1>Anfrage <span class="monospace">[[ ${request.uuid} ]]</span></h1>

        <th:block th:insert="~{fragments :: request}">
        </th:block>

        <h2 th:text="${request.report.description}"></h2>

        <p th:if="${issues.isEmpty()}">
            Keine weiteren Angaben.
        </p>

        <table th:if="${not issues.isEmpty()}">
            <thead>
                <tr>
                    <th>Schweregrad</th>
                    <th>Beschreibung und Pfad</th>
                </tr>
            </thead>
            <tbody>
            <tr th:each="issue : ${issues}">
                <td th:if="${issue.severity.value == 'info'}" class="bg-blue"><small>[[ ${issue.severity} ]]</small></td>
                <td th:if="${issue.severity.value == 'warning'}" class="bg-yellow"><small>[[ ${issue.severity} ]]</small></td>
                <td th:if="${issue.severity.value == 'error'}" class="bg-red"><small>[[ ${issue.severity} ]]</small></td>
                <td th:if="${issue.severity.value == 'fatal'}" class="bg-red"><small>[[ ${issue.severity} ]]</small></td>
                <td>
                    <div class="issue-message">[[ ${issue.message} ]]</div>
                    <div class="issue-path" th:if="${issue.path.isPresent()}">[[ ${issue.path.get()} ]]</div>
                    <div class="issue-path" th:if="${issue.path.isEmpty()}"><i>Keine Angabe</i></div>
                </td>
            </tr>
            </tbody>
        </table>
    </main>
    <footer th:replace="~{fragments.html :: footer}"></footer>
    <script th:src="@{/main.js}"></script>
</body>
</html>