Skip to content

Commit

Permalink
[FIXED JENKINS-29014] render API link conditional on getApi() presence
Browse files Browse the repository at this point in the history
  • Loading branch information
csimons authored and Christopher Simons committed Oct 5, 2015
1 parent 5e2b154 commit 76067e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/resources/lib/layout/layout.jelly
Expand Up @@ -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}">
Expand Down

0 comments on commit 76067e0

Please sign in to comment.