Skip to content

Commit afeacb5

Browse files
committedMay 10, 2014
Merge pull request #1204 from daniel-beck/JENKINS-22698
[FIXED JENKINS-22698] Add indicator that build queue is filtered.
2 parents 137efcf + e541ae6 commit afeacb5

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed
 

‎core/src/main/resources/hudson/model/View/ajaxBuildQueue.jelly

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ THE SOFTWARE.
2828
<?jelly escape-by-default='true'?>
2929
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
3030
<l:ajax>
31-
<t:queue items="${it.approximateQueueItemsQuickly}" />
31+
<t:queue items="${it.approximateQueueItemsQuickly}" filtered="${it.isFilterQueue()}" />
3232
</l:ajax>
3333
</j:jelly>

‎core/src/main/resources/jenkins/widgets/BuildQueueWidget/index.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package jenkins.widgets.BuildQueueWidget;
22

33
def t = namespace(lib.JenkinsTagLib.class)
44

5-
t.queue(items:view.approximateQueueItemsQuickly, it:view)
5+
t.queue(items:view.approximateQueueItemsQuickly, it:view, filtered:view.filterQueue)

‎core/src/main/resources/lib/hudson/queue.jelly

+12-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,20 @@ THE SOFTWARE.
3232
but for example you can specify a sublist after some filtering to narrow down
3333
the list.
3434
</st:attribute>
35+
<st:attribute name="filtered" use="optional">
36+
Indicates that the queue has been filtered, i.e. might not show all items.
37+
</st:attribute>
3538
</st:documentation>
3639
<t:setIconSize/>
37-
<l:pane title="${%Build Queue(items.size())}" width="2" id="buildQueue">
40+
<j:choose>
41+
<j:when test="${filtered}">
42+
<j:set var="title" value="${%Filtered Build Queue(items.size())}" />
43+
</j:when>
44+
<j:otherwise>
45+
<j:set var="title" value="${%Build Queue(items.size())}" />
46+
</j:otherwise>
47+
</j:choose>
48+
<l:pane title="${title}" width="2" id="buildQueue">
3849
<j:if test="${app.quietingDown}">
3950
<tr>
4051
<td class="pane" colspan="2" style="white-space: normal;">
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Build\ Queue=Build Queue{0,choice,0#|0< ({0,number})}
2+
Filtered\ Build\ Queue=Filtered Build Queue{0,choice,0#|0< ({0,number})}
23
WaitingFor=Waiting for {0}

0 commit comments

Comments
 (0)