PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/hudson-core/src/main/resources/hudson/model/AllView/noJob.jelly

http://github.com/hudson/hudson
Unknown | 49 lines | 43 code | 6 blank | 0 comment | 0 complexity | fff4a4dc7de3bf7023e096a66e557bef MD5 | raw file
 1<!--
 2The MIT License
 3
 4Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
 5
 6Permission is hereby granted, free of charge, to any person obtaining a copy
 7of this software and associated documentation files (the "Software"), to deal
 8in the Software without restriction, including without limitation the rights
 9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22THE SOFTWARE.
23-->
24
25<?jelly escape-by-default='true'?>
26<div>
27  <!--
28    This is a good place to add "welcome" materials, like pointers to the website and etc
29  -->
30  ${%Welcome to Hudson!}
31  <j:choose xmlns:j="jelly:core">
32    <!-- Only show the create new jobs link to those users that have permission to use it. -->
33    <j:getStatic var="permission" className="hudson.model.Item" field="CREATE"/>
34    <j:when test="${h.hasPermission(permission)}">
35      ${%newJob}
36    </j:when>
37    <j:otherwise>
38      <!-- Offer anonymous users the chance to login, then they can create jobs. -->
39      <j:if test="${h.isAnonymous()}">
40        ${%login(rootURL, app.securityRealm.loginUrl, request.requestURI)}
41        <!-- Also offer them the opportunity to sign-up for an account, if this facility is available. -->
42        <j:if test="${app.securityRealm.allowsSignup()}">
43          ${%signup}
44        </j:if>
45      </j:if>
46    </j:otherwise>
47  </j:choose>
48
49</div>