WIP
[demos/pact] / pwreset / src / main / resources / templates / error.html
1 <!doctype html>
2 <html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: table.card-text})}">
3   <head>
4     <title th:text="|${status}: ${error}">XXX: ERROR</title>
5     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
6     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7   </head>
8   <body>
9     <h1 th:text="|${status}: ${error}">XXX: ERROR</h1>
10       <table class="card-text table">
11         <tbody>
12           <tr class="border-top-0">
13             <th scope="row">Status</th>
14             <td th:text="${status}">ERROR.STATUS</td>
15           </tr>
16           <tr>
17             <th scope="row">Error</th>
18             <td th:text="${error}">ERROR.ERROR</td>
19           </tr>
20           <tr th:if="!${#strings.isEmpty(message)}">
21             <th scope="row">Message</th>
22             <td th:text="${message}">ERROR.MESSAGE</td>
23           </tr>
24           <tr th:if="!${#strings.isEmpty(requestId)}">
25             <th class="text-nowrap" scope="row">Request-ID</th>
26             <td th:text="${requestId}">ERROR.REQUEST_ID</td>
27           </tr>
28           <tr>
29             <th scope="row">Timstamp</th>
30             <td th:text="${timestamp}">ERROR.TIMESTAMP</td>
31           </tr>
32           <tr th:if="!${#strings.isEmpty(path)}">
33             <th scope="row">Path</th>
34             <td th:text="${path}">ERROR.PATH</td>
35           </tr>
36           <!--/**-->
37           <tr th:if="!${#strings.isEmpty(trace)}">
38             <th scope="row">Trace</th>
39             <td>
40               <div class="overflow-hidden">
41                 <pre class="overflow-hidden" th:text="${trace}">ERROR.TRACE</pre>
42               </div>
43             </td>
44           </tr>
45           <!--**/-->
46         </tbody>
47       </table>
48       <p><a href="#" th:href="@{/}" class="btn btn-primary">Back to HOME</a>
49     </div>
50   </body>
51 </html>