提交 0c9dc4c6 编写于 作者: K kohsuke

when there's no usage, there are no "following places".


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1779 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f434777d
...@@ -28,30 +28,40 @@ ...@@ -28,30 +28,40 @@
</j:choose> </j:choose>
</div> </div>
<h2>Usage</h2> <h2>Usage</h2>
<p> <j:set var="jobs" value="${it.jobs}"/>
This file has been used in the following places: <j:choose>
</p> <j:when test="${empty(jobs)}">
<table class="fingerprint-summary"> <p>
<j:forEach var="j" items="${it.jobs}"> This file has not been used anywhere else.
<j:set var="job" value="${app.getJob(j)}" /> </p>
<j:set var="range" value="${it.usages[j]}" /> </j:when>
<tr> <j:otherwise>
<td class="fingerprint-summary-header"> <p>
<j:choose> This file has been used in the following places:
<j:when test="${job!=null}"> </p>
<a href="${rootURL}/${job.url}">${j}</a> <table class="fingerprint-summary">
</j:when> <j:forEach var="j" items="${it.jobs}">
<j:otherwise> <j:set var="job" value="${app.getJob(j)}" />
${j} <j:set var="range" value="${it.usages[j]}" />
</j:otherwise> <tr>
</j:choose> <td class="fingerprint-summary-header">
</td> <j:choose>
<td> <j:when test="${job!=null}">
<t:buildRangeLink job="${job}" range="${range}" /> <a href="${rootURL}/${job.url}">${j}</a>
</td> </j:when>
</tr> <j:otherwise>
</j:forEach> ${j}
</table> </j:otherwise>
</j:choose>
</td>
<td>
<t:buildRangeLink job="${job}" range="${range}" />
</td>
</tr>
</j:forEach>
</table>
</j:otherwise>
</j:choose>
</l:main-panel> </l:main-panel>
</l:layout> </l:layout>
</j:jelly> </j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册