Skip to content
Permalink
Browse files
[FIXED JENKINS-29014] render API link conditional on getApi() presence
  • Loading branch information
csimons authored and Christopher Simons committed Oct 5, 2015
1 parent 5e2b154 commit 76067e0af93d3681756bf290aeb1f3a1e88b1d39
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/main/resources/lib/layout/layout.jelly
@@ -254,7 +254,9 @@ ${h.initPageVariables(context)}
<div class="col-md-6" id="footer"></div>
<div class="col-md-18">
<span class="page_generated">${%Page generated}: <i:formatDate value="${h.getCurrentTime()}" type="both" dateStyle="medium" timeStyle="medium"/></span>
<span class="rest_api"><a href="api/">REST API</a></span>
<j:if test="${!empty(it.api)}">
<span class="rest_api"><a href="api/">REST API</a></span>
</j:if>
<span class="jenkins_ver"><a href="${h.getFooterURL()}">Jenkins ver. ${h.version}</a></span>
<j:if test="${extensionsAvailable}">
<j:forEach var="pd" items="${h.pageDecorators}">

0 comments on commit 76067e0

Please sign in to comment.