This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
/
health.jelly
52 lines (48 loc) · 2.04 KB
/
health.jelly
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
<!--
Section header
<%@attribute name="id" required="true" %>
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson"
xmlns:f="/lib/form" xmlns:u="/util">
<f:entry title="${%Health thresholds}" description="${%description.health.limit}">
<table>
<tbody>
<tr>
<td style="vertical-align: middle;">
<img src="${rootURL}/images/16x16/health-80plus.gif" alt="100%" title="${%description.healthy}" /> ${%threshold.100.percent}
</td>
<td width="40">
<f:textbox name="healthy" value="${instance.healthy}" />
</td>
<td width="20"/>
<td style="vertical-align: middle;">
<img src="${rootURL}/images/16x16/health-00to19.gif" alt="0%" title="${%description.unhealthy}" /> ${%threshold.0.percent}
</td>
<td width="40">
<f:textbox name="unHealthy" value="${instance.unHealthy}" />
</td>
</tr>
</tbody>
</table>
</f:entry>
<f:entry title="${%Health priorities}" description="${%description.health.priorities}">
<f:radio name="${id}.thresholdLimit" value="high" checked="${instance.thresholdLimit == 'high'}" id="thresholdLimit.high"/>
<st:nbsp/>
<label for="thresholdLimit.high">${%Only priority high}</label>
<st:nbsp />
<f:radio name="${id}.thresholdLimit" value="normal" checked="${instance.thresholdLimit == 'normal'}" id="thresholdLimit.normal"/>
<st:nbsp/>
<label for="thresholdLimit.normal">${%Priorities high and normal}</label>
<st:nbsp />
<j:if test="${instance != null}">
<f:radio name="${id}.thresholdLimit" value="low" title="" checked="${instance.thresholdLimit == 'low'}" id="thresholdLimit.low"/>
</j:if>
<j:if test="${instance == null}">
<f:radio name="${id}.thresholdLimit" value="low" title="" checked="${true}" id="thresholdLimit.low"/>
</j:if>
<st:nbsp/>
<label for="thresholdLimit.low">${%All priorities}</label>
<st:nbsp />
</f:entry>
</j:jelly>