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

/hudson-core/src/main/resources/lib/hudson/buildListTable.jelly

http://github.com/hudson/hudson
Unknown | 75 lines | 69 code | 6 blank | 0 comment | 0 complexity | 32d9be3d8dc0d7b0422c0d4bd574316a MD5 | raw file
 1<!--
 2The MIT License
 3
 4Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe
 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<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">
27  <st:documentation>
28    Creates a table of builds.
29    <st:attribute name="builds" use="required">
30      A collection of builds to be displayed.
31    </st:attribute>
32    <st:attribute name="jobBaseUrl" use="required">
33      The base URL of all job/build links. Normally ${rootURL}/
34    </st:attribute>
35  </st:documentation>
36
37  <t:setIconSize/>
38  <table class="sortable pane bigtable" id="projectStatus">
39    <tr>
40      <th><st:nbsp/></th>
41      <th>${%Build}</th>
42      <th initialSortDir="up">${%Date}</th>
43      <th>${%Status}</th>
44      <th><st:nbsp/></th>
45    </tr>
46    <!-- TODO: support gradual expansion of the list -->
47    <j:forEach var="b" items="${h.subList(attrs.builds,50)}">
48      <tr>
49        <td data="${b.iconColor.ordinal()}">
50          <a href="${jobBaseUrl}${b.url}">
51            <img src="${imagesURL}/${iconSize}/${b.buildStatusUrl}"
52                 alt="${b.iconColor.description}"/>
53          </a>
54        </td>
55        <td>
56          <a href="${jobBaseUrl}${b.parent.url}">${b.parent.fullDisplayName}</a>
57          <st:nbsp/>
58          <a href="${jobBaseUrl}${b.url}">${b.displayName}</a>
59        </td>
60        <td data="${b.timestampString2}">
61          ${b.timestampString}
62        </td>
63        <td>
64          <t:buildStatusSummary build="${b}" />
65        </td>
66        <td>
67          <a href="${jobBaseUrl}${b.url}console">
68            <img src="${imagesURL}/${subIconSize}/terminal.gif" title="${%Console output}" alt="${%Console output}" border="0" />
69          </a>
70        </td>
71      </tr>
72    </j:forEach>
73  </table>
74  <t:rssBar-with-iconSize/>
75</j:jelly>