Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-24930] Alternating row bg colors
Also switches to using the PNG icons so there's no ugly white
background.
  • Loading branch information
daniel-beck committed Jun 17, 2015
1 parent f4c6f45 commit 66a44a8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
Expand Up @@ -19,7 +19,8 @@
<f:submit value="${%Show Diffs}" />
</div>
</j:if>
<table class="pane sortable" style="width:100%">
<st:adjunct includes="hudson.plugins.jobConfigHistory.table" />
<table id="confighistory" class="pane sortable">
<tr>
<td class="pane-header" initialSortDir="up" align="left">${%Date}</td>
<td class="pane-header" align="left">${%Operation}</td>
Expand All @@ -40,7 +41,7 @@
<j:set var="fileMissing" value="${!config.hasConfig()}"/>
<j:if test="${!fileMissing}">
<a href="configOutput?type=xml&amp;timestamp=${config.getDate()}">
<img src="${imagesURL}/24x24/document.gif" alt="" />${%View as XML}
<img src="${imagesURL}/24x24/document.png" alt="" />${%View as XML}
</a>
<st:nbsp />
<a href="configOutput?type=raw&amp;timestamp=${config.getDate()}">
Expand Down
Expand Up @@ -19,7 +19,8 @@
<f:submit value="${%Show Diffs}" />
</div>
</j:if>
<table class="pane sortable" style="width:100%">
<st:adjunct includes="hudson.plugins.jobConfigHistory.table" />
<table id="confighistory" class="pane sortable">
<tr>
<td class="pane-header" initialSortDir="up" align="left">${%Date}</td>
<td class="pane-header" align="left">${%Operation}</td>
Expand All @@ -46,7 +47,7 @@
<j:set var="fileMissing" value="${!config.hasConfig()}"/>
<j:if test="${!fileMissing}">
<a href="configOutput?type=xml&amp;timestamp=${config.getDate()}">
<img src="${imagesURL}/24x24/document.gif" alt="" />${%View as XML}
<img src="${imagesURL}/24x24/document.png" alt="" />${%View as XML}
</a>
<st:nbsp />
<a href="configOutput?type=raw&amp;timestamp=${config.getDate()}">
Expand Down
Expand Up @@ -48,7 +48,8 @@
<f:submit value="${%Show Diffs}" />
</div>
</j:if>
<table class="pane sortable" style="width:100%">
<st:adjunct includes="hudson.plugins.jobConfigHistory.table" />
<table id="confighistory" class="pane sortable">
<tr>
<td class="pane-header" initialSortDir="up" align="left">${%Date}</td>
<td class="pane-header" align="left">${%Operation}</td>
Expand All @@ -67,7 +68,7 @@
<td>
<j:if test="${config.operation != 'Deleted'}">
<a href="configOutput?type=xml&amp;name=${config.getJob()}&amp;timestamp=${config.getDate()}">
<img src="${imagesURL}/24x24/document.gif" alt="" />${%View as XML}
<img src="${imagesURL}/24x24/document.png" alt="" />${%View as XML}
</a>
<st:nbsp />
<a href="configOutput?type=raw&amp;name=${config.getJob()}&amp;timestamp=${config.getDate()}">
Expand Down
Expand Up @@ -104,7 +104,7 @@
<td>
<!-- TODO check whether job has a JobConfigHistoryProjectAction before hyperlinking -->
<a href="${it.createLinkToFiles(config,'xml')}">
<img src="${imagesURL}/24x24/document.gif" alt="" />${%View as XML}
<img src="${imagesURL}/24x24/document.png" alt="" />${%View as XML}
</a>
<st:nbsp />
<a href="${it.createLinkToFiles(config,'raw')}">
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/hudson/plugins/jobConfigHistory/table.css
@@ -0,0 +1,6 @@
table#confighistory {
width: 100%;
}
table#confighistory tr:nth-child(even) {
background-color: #eee;
}

0 comments on commit 66a44a8

Please sign in to comment.