Skip to content

Commit

Permalink
[JENKINS-73225] Restore linking when multiple axes (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored May 30, 2024
1 parent 7eada56 commit 084e85a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ THE SOFTWARE.
${%Not run}
</j:when>
<j:otherwise>
<l:icon src="symbol-status-${b.iconColor.iconName}" class="icon-md" tooltip="${h.xmlEscape(p.tooltip)} ${it.number!=b.number?(it.isBuilding()?'- pending' : '- skipped'):''}" alt="${p.tooltip}" style="vertical-align: middle; ${it.number!=b.number?'opacity:0.5':''}"/>
<a href="${p.nearestRunUrl}" class="model-link inside">
<l:icon src="symbol-status-${b.iconColor.iconName}" class="icon-md" tooltip="${h.xmlEscape(p.tooltip)} ${it.number!=b.number?(it.isBuilding()?'- pending' : '- skipped'):''}" alt="${p.tooltip}" style="vertical-align: middle; ${it.number!=b.number?'opacity:0.5':''}"/>
<j:if test="${empty(o.x) and empty(o.y)}">
${p.combination.toString(o.z)}
</j:if>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ THE SOFTWARE.
${%Not configured}
</j:when>
<j:otherwise>
<l:icon src="symbol-status-${p.iconColor.iconName}" class="icon-md" tooltip="${p.iconColor.description}" alt="${p.iconColor.description}"/>
<a href="${p.shortUrl}" class="model-link inside" style="vertical-align: middle">
<l:icon src="symbol-status-${p.iconColor.iconName}" class="icon-md" tooltip="${p.iconColor.description}" alt="${p.iconColor.description}"/>
<j:if test="${empty(o.x) and empty(o.y)}">
${p.combination.toString(o.z)}
<span class="jenkins-!-margin-left-1">${p.combination.toString(o.z)}</span>
</j:if>
</a>
</j:otherwise>
Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/lib/hudson/matrix-project/matrix.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ THE SOFTWARE.
</j:forEach>
</j:when>
<j:otherwise>
<table id="configuration-matrix">
<table class="jenkins-table" id="configuration-matrix">
<!-- X-axis -->
<j:forEach var="x" items="${o.x}" varStatus="loop">
<tr class="matrix-row">
<!-- space for Y-axis -->
<j:if test="${!empty(o.y)}">
<td id="matrix-title" colspan="${size(o.y)}">${%Configuration Matrix}</td>
<th id="matrix-title" colspan="${size(o.y)}">${%Configuration Matrix}</th>
</j:if>
<j:forEach begin="1" end="${o.repeatX(loop.index)}">
<j:forEach var="v" items="${x.values}">
<td class="matrix-header" colspan="${o.width(loop.index)}" tooltip="${h.xmlEscape(x.name)}">
${v}
</td>
<th class="matrix-header" colspan="${o.width(loop.index)}">
<span tooltip="${h.xmlEscape(x.name)}">${v}</span>
</th>
</j:forEach>
</j:forEach>
</tr>
Expand All @@ -76,8 +76,8 @@ THE SOFTWARE.
<tr>
<j:forEach var="y" items="${o.y}" varStatus="loop">
<j:if test="${r.drawYHeader(loop.index)!=null}">
<td class="matrix-leftcolumn" rowspan="${o.height(loop.index)}" tooltip="${h.xmlEscape(y.name)}">
${r.drawYHeader(loop.index)}
<td class="matrix-leftcolumn" rowspan="${o.height(loop.index)}">
<span tooltip="${h.xmlEscape(y.name)}">${r.drawYHeader(loop.index)}</span>
</td>
</j:if>
</j:forEach>
Expand Down

0 comments on commit 084e85a

Please sign in to comment.