main.jelly 3.1 KB
Newer Older
K
kohsuke 已提交
1 2 3
<!--
The MIT License

R
rseguy 已提交
4 5
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Erik Ramfelt,
id:cactusman, Romain Seguy
K
kohsuke 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->

26
<?jelly escape-by-default='true'?>
27
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
K
kohsuke 已提交
28

29 30 31 32
  <j:if test="${it.supportsMakeDisabled()}">
    <st:include page="makeDisabled.jelly" />
  </j:if>

33 34
  <p:projectActionFloatingBox />
  
K
kohsuke 已提交
35 36 37 38 39 40 41
  <table style="margin-top: 1em; margin-left:1em;">

    <j:forEach var="act" items="${it.prominentActions}">
      <t:summary icon="${act.iconFileName}" href="${act.urlName}">
        ${act.displayName}
      </t:summary>
    </j:forEach>
42
    <t:summary icon="folder.png" href="ws/" permission="${it.WORKSPACE}">
C
cactusman 已提交
43
      ${%Workspace}
K
kohsuke 已提交
44 45
    </t:summary>

C
cactusman 已提交
46
    <t:artifactList caption="${%Last Successful Artifacts}"
R
rseguy 已提交
47 48
        build="${it.lastSuccessfulBuild}" baseURL="lastSuccessfulBuild/"
        permission="${it.lastSuccessfulBuild.ARTIFACTS}"/>
K
kohsuke 已提交
49

50
    <t:summary icon="notepad.png" href="changes">
C
cactusman 已提交
51
      ${%Recent Changes}
52 53
    </t:summary>

54
    <j:set var="tr" value="${it.lastCompletedBuild.testResultAction}"/>
K
kohsuke 已提交
55
    <j:if test="${tr!=null}">
56
      <j:if test="${tr.class.name != 'hudson.tasks.test.AggregatedTestResultAction'}">
57
        <t:summary icon="clipboard.png">
58
          <a href="lastCompletedBuild/testReport/" class="model-link">${%Latest Test Result}</a>
59 60 61 62 63 64 65 66
          <st:nbsp/>
          <t:test-result it="${tr}" />
        </t:summary>
      </j:if>
    </j:if>

    <j:set var="atr" value="${it.lastCompletedBuild.aggregatedTestResultAction}"/>
    <j:if test="${atr!=null}">
67
      <t:summary icon="clipboard.png">
68
        <a href="lastCompletedBuild/aggregatedTestReport/" class="model-link">${%Latest Aggregated Test Result}</a>
69
        <st:nbsp/>
70
        <t:test-result it="${atr}" />
K
kohsuke 已提交
71 72
      </t:summary>
    </j:if>
73
    
K
kohsuke 已提交
74 75
  </table>

76 77
  <!-- merge fragments from the actions -->
  <j:forEach var="a" items="${it.actions}">
78
    <st:include page="jobMain.jelly" it="${a}" optional="true" />
79 80
  </j:forEach>

81
  <p:upstream-downstream />
82
</j:jelly>