提交 83518548 编写于 作者: K kohsuke

improved the handling when a module build doesn't exist.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7506 71c3de6d-444a-0410-be80-ed276b4c234a
上级 fa0fe79e
......@@ -5,15 +5,24 @@
<j:when test="${it.project.aggregatorStyleBuild}">
<j:forEach var="m" items="${it.project.modules}">
<div>
<a href="${m.shortUrl}">
<j:set var="mb" value="${m.getBuildByNumber(it.number)}"/>
<img src="${imagesURL}/16x16/${mb.buildStatusUrl}"
alt="${mb.iconColor.description}"/>
</a>
<st:nbsp/>
<a href="${m.shortUrl}">
${m.displayName}
</a>
<j:set var="mb" value="${m.getBuildByNumber(it.number)}"/>
<j:choose>
<j:when test="${mb!=null}">
<a href="${m.shortUrl}">
<img src="${imagesURL}/16x16/${mb.buildStatusUrl}"
alt="${mb.iconColor.description}"/>
</a>
<st:nbsp/>
<a href="${m.shortUrl}">
${m.displayName}
</a>
</j:when>
<j:otherwise><!-- module build non-existent, so no link -->
<img src="${imagesURL}/16x16/grey.gif" />
<st:nbsp/>
${m.displayName}
</j:otherwise>
</j:choose>
</div>
</j:forEach>
</j:when>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册