Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a3030d9dadaa2391d3010039362460b97921f028 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!-- **************************************************************************
#
# Copyright  (c) 2004-2009 Oracle Corporation.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors: 
#
#    Kohsuke Kawaguchi, Seiji Sogabe
#        
#
#************************************************************************** --> 


<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">
  <st:documentation>
    Creates a table of builds.
    <st:attribute name="builds" use="required">
      A collection of builds to be displayed.
    </st:attribute>
    <st:attribute name="jobBaseUrl" use="required">
      The base URL of all job/build links. Normally ${rootURL}/
    </st:attribute>
  </st:documentation>

  <t:setIconSize/>
  <table class="sortable pane bigtable" id="projectStatus">
    <tr>
      <th><st:nbsp/></th>
      <th>${%Build}</th>
      <th initialSortDir="up">${%Date}</th>
      <th>${%Status}</th>
      <th><st:nbsp/></th>
    </tr>
    <!-- TODO: support gradual expansion of the list -->
    <j:forEach var="b" items="${h.subList(attrs.builds,50)}">
      <tr>
        <td data="${b.iconColor.ordinal()}">
          <a href="${jobBaseUrl}${b.url}">
            <img src="${imagesURL}/${iconSize}/${b.buildStatusUrl}"
                 alt="${b.iconColor.description}"/>
          </a>
        </td>
        <td>
          <a href="${jobBaseUrl}${b.parent.url}">${b.parent.fullDisplayName}</a>
          <st:nbsp/>
          <a href="${jobBaseUrl}${b.url}">${b.displayName}</a>
        </td>
        <td data="${b.timestampString2}">
          ${b.timestampString}
        </td>
        <td>
          <t:buildStatusSummary build="${b}" />
        </td>
        <td>
          <a href="${jobBaseUrl}${b.url}console">
            <img src="${imagesURL}/${subIconSize}/terminal.gif" title="${%Console output}" alt="${%Console output}" border="0" />
          </a>
        </td>
      </tr>
    </j:forEach>
  </table>
  <t:rssBar-with-iconSize/>
</j:jelly>

Back to the top