Skip to content

Commit

Permalink
[JENKINS-23492] Fixed issue where empty welcome page callout block wa…
Browse files Browse the repository at this point in the history
…s appearing.
  • Loading branch information
tfennelly committed Jul 14, 2014
1 parent b598301 commit 65d3799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/resources/hudson/model/AllView/noJob.jelly
Expand Up @@ -29,24 +29,24 @@ THE SOFTWARE.
-->
<h1>${%Welcome to Jenkins!}</h1>

<div class="call-to-action">
<j:choose xmlns:j="jelly:core">
<!-- Only show the create new jobs link to those users that have permission to use it. -->
<j:getStatic var="permission" className="hudson.model.Item" field="CREATE"/>
<j:when test="${h.hasPermission(permission)}">
${%newJob}
<div class="call-to-action">${%newJob}</div>
</j:when>
<j:otherwise>
<!-- Offer anonymous users the chance to login, then they can create jobs. -->
<j:if test="${h.isAnonymous()}">
<div class="call-to-action">
${%login(rootURL, app.securityRealm.loginUrl, request.requestURI)}
<!-- Also offer them the opportunity to sign-up for an account, if this facility is available. -->
<j:if test="${app.securityRealm.allowsSignup()}">
${%signup}
</j:if>
</div>
</j:if>
</j:otherwise>
</j:choose>
</div>

</div>

0 comments on commit 65d3799

Please sign in to comment.