Skip to content

Commit 066f524

Browse files
authored
Don't show broken link when test is passing or skipped (#752)
1 parent 9eaa138 commit 066f524

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/resources/lib/hudson/test/table.jelly

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ THE SOFTWARE.
8383
</j:forEach>
8484
</td>
8585
<td class="jenkins-mobile-hide">
86-
<a href="${rootURL}/${f.failedSinceRun.url}">${f.age}</a>
86+
<j:choose>
87+
<j:when test="${f.age == 0 or f.skipped}">0</j:when>
88+
<j:otherwise>
89+
<a href="${rootURL}/${f.failedSinceRun.url}">${f.age}</a>
90+
</j:otherwise>
91+
</j:choose>
8792
</td>
8893
<td class="no-wrap jenkins-mobile-hide" data="${f.duration}">
8994
${f.durationString}

0 commit comments

Comments
 (0)