-
Notifications
You must be signed in to change notification settings - Fork 274
/
description.jelly
68 lines (68 loc) · 2.91 KB
/
description.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson">
<j:choose>
<j:when test="${it.manuallyTriggered}">
<j:choose>
<j:when test="${it.silentMode}">
${%ManuallyTriggeredShortDescriptionInSilentMode(it.url,it.userName,rootURL)}
</j:when>
<j:otherwise>
${%ManuallyTriggeredShortDescription(it.url,it.userName,rootURL)}
</j:otherwise>
</j:choose>
</j:when>
<j:when test="${it.getUserName() != null}">
<j:choose>
<j:when test="${it.silentMode}">
${%ReTriggeredShortDescriptionInSilentMode(it.url,it.userName,rootURL)}
</j:when>
<j:otherwise>
${%ReTriggeredShortDescription(it.url,it.userName,rootURL)}
</j:otherwise>
</j:choose>
</j:when>
<j:otherwise>
<j:choose>
<j:when test="${it.silentMode}">
${%TriggeredShortDescriptionInSilentMode(it.url)}
</j:when>
<j:otherwise>
${%TriggeredShortDescription(it.url)}
</j:otherwise>
</j:choose>
</j:otherwise>
</j:choose>
<j:if test="${it.context.hasOthers()}">
<table cellpadding="2" cellspacing="0" border="0" style="margin-left: 15px;">
<tr>
<th colspan="2">
${%OtherTriggeredBuilds}
</th>
</tr>
<j:forEach items="${it.context.getSortedOthers()}" var="other">
<tr>
<j:choose>
<j:when test="${other.hasBuild()}">
<td width="18">
<l:icon class="${build.build.iconColor.iconClassName}"/>
</td>
<td>
<a href="${rootURL}/${other.project.url}">${other.project.displayName}</a>
<st:nbsp/><st:nbsp/>
<a href="${rootURL}/${other.build.url}">${other.build.displayName}</a>
</td>
</j:when>
<j:otherwise>
<td width="18">
<img src="${rootURL}/images/build-status/build-status-sprite.svg#never-built" class="icon-grey-anime icon-sm"/>
</td>
<td>
<a href="${rootURL}/${other.project.url}">${other.project.displayName}</a>
</td>
</j:otherwise>
</j:choose>
</tr>
</j:forEach>
</table>
</j:if>
</j:jelly>