Skip to content

Commit

Permalink
HUDSON-8252 FIXED offline slaves wasting space in status list
Browse files Browse the repository at this point in the history
There is a lot of wasted space on the Build Executor Status when
slave nodes are offline. The space can be reclaimed by simply
not displaying offline executors for offline slaves.
  • Loading branch information
jieryn committed Dec 7, 2010
1 parent 634693b commit 9cea6de
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions core/src/main/resources/lib/hudson/executors.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,16 @@ THE SOFTWARE.
</j:otherwise>
</j:choose>
</tr>
<j:forEach var="e" items="${c.executors}" varStatus="eloop">
<local:executor name="${eloop.index+1}" url="executors/${eloop.index}" />
</j:forEach>
<j:forEach var="e" items="${c.oneOffExecutors}" varStatus="eloop">
<local:executor name="" url="oneOffExecutors/${eloop.index}" />
</j:forEach>
<j:choose>
<j:when test="${!c.offline}">
<j:forEach var="e" items="${c.executors}" varStatus="eloop">
<local:executor name="${eloop.index+1}" url="executors/${eloop.index}" />
</j:forEach>
<j:forEach var="e" items="${c.oneOffExecutors}" varStatus="eloop">
<local:executor name="" url="oneOffExecutors/${eloop.index}" />
</j:forEach>
</j:when>
</j:choose>
</j:forEach>
</l:pane>
<!-- schedule updates only for the full page reload -->
Expand Down

0 comments on commit 9cea6de

Please sign in to comment.