提交 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 @@
</j:choose>
</div>
<h2>Usage</h2>
<p>
This file has been used in the following places:
</p>
<table class="fingerprint-summary">
<j:forEach var="j" items="${it.jobs}">
<j:set var="job" value="${app.getJob(j)}" />
<j:set var="range" value="${it.usages[j]}" />
<tr>
<td class="fingerprint-summary-header">
<j:choose>
<j:when test="${job!=null}">
<a href="${rootURL}/${job.url}">${j}</a>
</j:when>
<j:otherwise>
${j}
</j:otherwise>
</j:choose>
</td>
<td>
<t:buildRangeLink job="${job}" range="${range}" />
</td>
</tr>
</j:forEach>
</table>
<j:set var="jobs" value="${it.jobs}"/>
<j:choose>
<j:when test="${empty(jobs)}">
<p>
This file has not been used anywhere else.
</p>
</j:when>
<j:otherwise>
<p>
This file has been used in the following places:
</p>
<table class="fingerprint-summary">
<j:forEach var="j" items="${it.jobs}">
<j:set var="job" value="${app.getJob(j)}" />
<j:set var="range" value="${it.usages[j]}" />
<tr>
<td class="fingerprint-summary-header">
<j:choose>
<j:when test="${job!=null}">
<a href="${rootURL}/${job.url}">${j}</a>
</j:when>
<j:otherwise>
${j}
</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:layout>
</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.
先完成此消息的编辑!
想要评论请 注册