Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #62 from mmitche/fix-build-number-comma
Remove comma in "caused by" link on project page.
  • Loading branch information
dnozay committed Aug 28, 2015
2 parents bd179ac + e08453f commit 6004fdd
Showing 1 changed file with 5 additions and 3 deletions.
@@ -1,20 +1,22 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<j:set var="proj" value="${app.getItemByFullName(it.buildFlow)}"/>
<!-- Use toString to avoid comma-formatted number. -->
<j:set var="buildNumberString" value="${it.buildNumber.toString()}"/>
<j:choose>
<j:when test="${proj != null}">
<j:set var="build" value="${proj.getBuildByNumber(it.buildNumber)}"/>
<j:choose>
<j:when test="${build != null}">
${%message(rootURL, proj.url, it.buildFlow, it.buildNumber)}
${%message(rootURL, proj.url, it.buildFlow, buildNumberString)}
</j:when>
<j:otherwise>
${%message_no_build(rootURL, proj.url, it.buildFlow, it.buildNumber)}
${%message_no_build(rootURL, proj.url, it.buildFlow, buildNumberString)}
</j:otherwise>
</j:choose>
</j:when>
<j:otherwise>
${%message_no_job(rootURL, null, it.buildFlow, it.buildNumber)}
${%message_no_job(rootURL, null, it.buildFlow, buildNumberString)}
</j:otherwise>
</j:choose>
<j:if test="${!it.upstreamCauses.isEmpty()}">
Expand Down

0 comments on commit 6004fdd

Please sign in to comment.