Skip to content

Commit 6ad3482

Browse files
authored
Merge pull request #144 from jenkinsci/badges-2
Include badges in agent history
2 parents c1412b3 + cfec339 commit 6ad3482

File tree

2 files changed

+10
-2
lines changed
  • src/main/resources/io/jenkins/plugins/agent_build_history

2 files changed

+10
-2
lines changed

src/main/resources/io/jenkins/plugins/agent_build_history/AgentBuildHistory/index.jelly

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<th>${%Status}</th>
126126
<th/>
127127
<th class="jenkins-table__cell--tight"></th>
128+
<th class="abh-header-left">${%Badges}</th>
128129
</tr>
129130
</thead>
130131
<tbody>
@@ -204,6 +205,13 @@
204205
</a>
205206
</div>
206207
</td>
208+
<td class="jenkins-table__cell--tight">
209+
<div class="abh-badges">
210+
<j:forEach var="badge" items="${run.badgeActions}">
211+
<st:include it="${badge}" page="badge.jelly" />
212+
</j:forEach>
213+
</div>
214+
</td>
207215
</tr>
208216
</j:forEach>
209217
</tbody>

src/main/resources/io/jenkins/plugins/agent_build_history/WorkflowJobHistoryAction/index.jelly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</div>
8686
</td>
8787
<td data="${run.number}">
88-
<a href="${rootURL}/${run.url}" class="model-link">${run.displayName}</a>
88+
<a href="${rootURL}/${run.url}" class="jenkins-table__link jenkins-table__badge model-link inside">${run.displayName}</a>
8989
</td>
9090
<td>
9191
${result.shortDescription}
@@ -103,7 +103,7 @@
103103
<div class="${index > 0 ? 'abh-hidden jenkins-hidden' : ''}">
104104
<j:choose>
105105
<j:when test="${agent.builtOn != null}">
106-
<a href="${rootURL}/computer/${agent.builtOn}">${agent.builtOnStr}</a>
106+
<a href="${rootURL}/computer/${agent.builtOn}" class="model-link">${agent.builtOnStr}</a>
107107
</j:when>
108108
<j:otherwise>
109109
${agent.builtOnStr}

0 commit comments

Comments
 (0)