|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

I did some work on this. The idea is to hide the build parameters and only show them when a user clicks on the "pending—Build #..." string, with ability to hide the long string again (and later with ability to view/expand all hidden build parameters). The working example script of what I aim for is here: http://jsfiddle.net/jakubczaplicki/WT88W/
It required modification of two files (see diffs below).
I'd like a feedback and some suggestions/help on how to improve this code, such that it can be applied to master branch.
Some notes:
Code:
diff --git a/core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly b/core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly index e545724..4ffd3ac 100644 --- a/core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly +++ b/core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly @@ -47,6 +47,7 @@ THE SOFTWARE. <l:stopButton href="" class="code-quote">"${rootURL}/queue/cancelItem?id=${item.id}" alt="${%cancel this build}"/> </j:if> </div> + <div class="itemsummary" id="${id}"> <j:set var="cause" value="${item.getCauseOfBlockage()}"/> <j:choose> <j:when test="${cause!=null}"> (${%pending}—<st:include it="${cause}" page="summary.jelly"/>) </j:when> <j:otherwise> (${%pending}) </j:otherwise> </j:choose> - ${item.params} + </div> + <div class="itemparams" id="${id}">${item.params}</div> </td> </tr> </j:forEach>