Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 24, 2023
1 parent 67d4264 commit 7a0e57e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/src/main/resources/lib/hudson/progressBar.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ THE SOFTWARE.
<st:attribute name="red">
if set to non-null, the progress bar will be drawn in red, to indicate that the processing is likely stuck.
</st:attribute>
<st:attribute name="id">
If set, id will be the identifier for the component
</st:attribute>
</st:documentation>

<x:element name="${attrs.href != null ? 'a' : 'div'}">
<x:attribute name="class">jenkins-progress-bar ${attrs.red ? 'jenkins-progress-bar--error' : null}</x:attribute>
<x:attribute name="href">${attrs.href}</x:attribute>
<x:attribute name="id">${attrs.id}</x:attribute>

<j:choose>
<j:when test="${pos lt 0}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ THE SOFTWARE.
</st:documentation>
<st:adjunct includes="lib.layout.progressiveRendering.progressiveRendering"/>
<j:set var="id" value="${h.generateId()}"/>
<t:progressBar id="${id}" pos="0" tooltip="${tooltip ?: '%progressMessage'}"/>
<t:progressBar id="${id}" pos="0" />
<st:bind var="proxy" value="${handler}" />
<div class="progressive-rendering-information-holder" data-id="${id}" data-callback="${callback}" />
</j:jelly>

0 comments on commit 7a0e57e

Please sign in to comment.