forked from codecentric/spring-boot-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus-changed.html
More file actions
108 lines (98 loc) · 3.51 KB
/
status-changed.html
File metadata and controls
108 lines (98 loc) · 3.51 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<!--
~ Copyright 2014-2018 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
h1, h2, h3, h4, h5, h6 {
font-weight: 400
}
ul {
list-style: none
}
html {
box-sizing: border-box
}
*, :after, :before {
box-sizing: inherit
}
table {
border-collapse: collapse;
border-spacing: 0
}
td, th {
text-align: left
}
body, button {
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
}
code, pre {
-moz-osx-font-smoothing: auto;
-webkit-font-smoothing: auto;
font-family: monospace
}
</style>
</head>
<body>
<th:block th:remove="all">
<!-- This block will not appear in the body and is used for the subject -->
<th:block th:remove="tag" th:fragment="subject">
[[${instance.registration.name}]] ([[(${instance.id})]]) is [[${event.statusInfo.status}]]
</th:block>
</th:block>
<h1><span th:text="${instance.registration.name}"/> (<span th:text="${instance.id}"/>)
is <span th:text="${event.statusInfo.status}"/>
</h1>
<p>
Instance <a th:if="${baseUrl}" th:href="@{${baseUrl + '/#/instances/' + instance.id + '/'}}"><span
th:text="${instance.id}"/></a>
<span th:unless="${baseUrl}" th:text="${instance.id}"/>
changed status from <span th:text="${lastStatus}"/> to <span th:text="${event.statusInfo.status}"/>
</p>
<h2>Status Details</h2>
<dl th:fragment="statusDetails" th:with="details = ${details ?: event.statusInfo.details}">
<th:block th:each="detail : ${details}">
<dt th:text="${detail.key}"/>
<dd th:unless="${detail.value instanceof T(java.util.Map)}" th:text="${detail.value}"/>
<dd th:if="${detail.value instanceof T(java.util.Map)}">
<dl th:with="templateName = ${#execInfo.templateName}" th:replace="${templateName} :: statusDetails (details = ${detail.value})"/>
</dd>
</th:block>
</dl>
<h2>Registration</h2>
<table>
<tr th:if="${instance.registration.serviceUrl}">
<td>Service Url</td>
<td>
<a th:href="${instance.registration.serviceUrl}" th:text="${instance.registration.serviceUrl}"></a>
</td>
</tr>
<tr>
<td>Health Url</td>
<td>
<a th:href="${instance.registration.healthUrl}" th:text="${instance.registration.healthUrl}"></a>
</td>
</tr>
<tr th:if="${instance.registration.managementUrl}">
<td>Management Url</td>
<td>
<a th:href="${instance.registration.managementUrl}" th:text="${instance.registration.managementUrl}"></a>
</td>
</tr>
</table>
</body>
</html>