-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.jelly
151 lines (132 loc) · 4.04 KB
/
main.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<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">
<style>
<j:if test="${it.highlightCommitter}">
.highlighted {
background-color: rgba(255, 255, 0, .3);
}
.highlighted:hover {
background-color: rgba(255, 255, 0, .6) !important;
}
</j:if>
#commitTooltip {
border: 1px solid #AAA;
border-radius: 3px;
background-color: #EFEFEF;
max-width: 400px;
padding: 5px;
position: absolute;
zIndex: 200;
}
#commitTooltip .header {
font-size: 15px;
text-align: center;
}
a.sortheader {
text-decoration: none;
color: black;
}
.lastSuccessfulRow {
background-color: #CFC;
border-bottom: 3px double #BBB !important;
}
.lastSuccessfulRow:hover {
background-color: #BEB !important;
border-bottom: 3px double #BBB !important;
}
img#multipleCommitters {
float: left;
padding-top: 6px;
width: 16px;
height: 16px;
}
.build .name {
padding-right: 2px;
}
.build .failureCount {
padding-left: 2px;
}
<!--
.build a {
text-decoration: none;
}
.build a span {
position: relative;
left: -16px;
color: black;
font-weight: bolder;
text-decoration: none;
top: 1px;
}-->
</style>
<j:if test="${it.clickForCommitDetails}">
<script type="text/javascript" src="${rootURL}/plugin/PipelineDashboard/magicPopup.js"></script>
</j:if>
<j:if test="${it.autoRefresh}">
<script type="text/javascript" src="${rootURL}/plugin/PipelineDashboard/autoRefresh.js"></script>
</j:if>
<j:set var="views" value="${it.owner.views}"/>
<j:set var="currentView" value="${it}"/>
<st:include page="viewTabs.jelly" it="${it.owner.viewsTabBar}"/>
<div id="PipelineDashboard">
<table id="projectstatus" class="pane bigtable">
<tr style="border-top: 0px;">
<th>${it.firstColumnName}</th>
<j:forEach items="${it.jobs}" var="jobName">
<th>
<a class="sortheader" href="job/${jobName}">${jobName}</a>
</th>
</j:forEach>
</tr>
<j:set var="table" value="${it.getDisplayRows()}"/>
<!--Display the last successful row-->
<j:if test="${it.showLastSuccessfulBuild and table.lastSuccessfulRow != null}">
<tr id="row-${table.lastSuccessfulRow.getName()}" class="lastSuccessfulRow ${table.lastSuccessfulRow.isHighlighted() ? 'highlighted' : ''}">
<td class="custom">${table.lastSuccessfulRow.getDisplayName()}</td>
<j:forEach items="${table.lastSuccessfulRow.getColumns()}" var="column">
<td class="build" url="${column.getUrl()}">
<j:if test="${!column.isEmpty()}">
<a href="${column.getUrl()}testReport">
<img src="${column.getBuildStatusUrl()}"/>
<span>${column.getName()}</span>
</a>
</j:if>
<j:if test="${column.isEmpty()}">
<span>?</span>
</j:if>
</td>
</j:forEach>
</tr>
</j:if>
<j:forEach items="${table.rows}" var="row" indexVar="i">
<tr id="row-${row.getName()}" class="${row.isHighlighted() ? 'highlighted' : ''}">
<td class="custom">
<j:if test="${row.getHasMultiple()}">
<img id="multipleCommitters" src="${rootURL}/plugin/PipelineDashboard/multiple_committers.png" />
</j:if>
${row.getDisplayName()}
</td>
<j:forEach items="${row.getColumns()}" var="column">
<td class="build" url="${column.getUrl()}">
<j:if test="${!column.isEmpty()}">
<a class="status" href="${column.getUrl()}console">
<img src="${column.getBuildStatusUrl()}"/>
</a>
<span>
<j:if test="${column.getName().length() > -1}">
<a class="name" href="${column.getUrl()}">${column.getName()}</a>
</j:if>
<j:if test="${column.getFailureCount() > -1}">
<a class="failureCount" href="${column.getUrl()}testReport">(${column.getFailureCount()} failures)</a>
</j:if>
</span>
</j:if>
<j:if test="${column.isEmpty()}">
<span>?</span>
</j:if>
</td>
</j:forEach>
</tr>
</j:forEach>
</table>
</div>
</j:jelly>