Skip to content

Commit

Permalink
[JENKINS-10251] Styling the matrix configuration table to look more l…
Browse files Browse the repository at this point in the history
…ike Jenkins tables

instead of the default HTML table look. Also moving the
"Configuration Matrix" title as a part of the table, to gain some space.

Originally-Committed-As: aba1616465e4a86ec7b7c0970a158d2229a2b037
  • Loading branch information
costincaraivan authored and kohsuke committed Dec 7, 2011
1 parent 70e87b2 commit 770c901
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/src/main/resources/lib/hudson/project/matrix.jelly
Expand Up @@ -53,18 +53,17 @@ THE SOFTWARE.
</j:forEach>
</j:when>
<j:otherwise>
<h2>${%Configuration Matrix}</h2>
<table border="1" class="middle-align center-align">
<table id="configuration-matrix">
<!-- X-axis -->
<j:forEach var="x" items="${o.x}" varStatus="loop">
<tr>
<tr class="matrix-row">
<!-- space for Y-axis -->
<j:if test="${!empty(o.y)}">
<td colspan="${size(o.y)}" />
<td id="matrix-title" colspan="${size(o.y)}">${%Configuration Matrix}</td>
</j:if>
<j:forEach begin="1" end="${o.repeatX(loop.index)}">
<j:forEach var="v" items="${x.values}">
<td colspan="${o.width(loop.index)}">${v}</td>
<td class="matrix-header" colspan="${o.width(loop.index)}">${v}</td>
</j:forEach>
</j:forEach>
</tr>
Expand All @@ -75,12 +74,12 @@ THE SOFTWARE.
<tr>
<j:forEach var="y" items="${o.y}" varStatus="loop">
<j:if test="${r.drawYHeader(loop.index)!=null}">
<td rowspan="${o.height(loop.index)}">${r.drawYHeader(loop.index)}</td>
<td class="matrix-leftcolumn" rowspan="${o.height(loop.index)}">${r.drawYHeader(loop.index)}</td>
</j:if>
</j:forEach>

<j:forEach var="c" items="${r}">
<td>
<td class="matrix-cell">
<j:choose>
<j:forEach var="p" items="${c}">
<div>
Expand Down

0 comments on commit 770c901

Please sign in to comment.