提交 e2666f06 编写于 作者: M mindless

avoid math on buildNumber value when possible, in case it isn't numeric

(e.g. batch-task plugin)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30303 71c3de6d-444a-0410-be80-ed276b4c234a
上级 7694a682
......@@ -35,7 +35,9 @@ THE SOFTWARE.
<td nowrap="nowrap">
<img width="16" height="16" src="${imagesURL}/16x16/grey.gif" alt="${%pending}"/>
<st:nbsp/>
#${it.owner.nextBuildNumber+queuedItems.size()-i-1}
<!-- Don't use math unless needed, in case nextBuildNumber is not numeric -->
#${queuedItems.size()==1 ? it.owner.nextBuildNumber
: it.owner.nextBuildNumber+queuedItems.size()-i-1}
</td>
<td style="white-space:normal;">
<div style="float:right">
......@@ -62,4 +64,4 @@ THE SOFTWARE.
</j:if>
<st:include page="/hudson/widgets/HistoryWidget/entries.jelly" />
</j:jelly>
\ No newline at end of file
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册