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

M
mindless 已提交
4
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi
K
kohsuke 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

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.
-->

25 26 27
<!--
  Render a single build history entry indicated by ${build}
-->
28
<?jelly escape-by-default='true'?>
29 30
<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">
  <j:set var="link" value="${it.baseUrl}/${build.number}/" />
31
  <j:set var="transitive" value="${(it.firstTransientBuildKey!=null and (it.adapter.compare(build,it.firstTransientBuildKey) ge 0)) ? 'transitive' : null}" />
M
mindless 已提交
32 33
  <tr class="build-row no-wrap ${transitive}">
    <td>
34
      <a class="build-status-link" href="${link}console"><img class="build-status-icon" width="16" height="16" src="${imagesURL}/16x16/${build.buildStatusUrl}" alt="${build.iconColor.description} &gt; ${%Console Output}" tooltip="${build.iconColor.description} &gt; ${%Console Output}" /></a><st:nbsp/>
35
      ${build.displayName}
36
    </td>
M
mindless 已提交
37
    <td style="padding-right:0">
38
      <a class="tip model-link inside" href="${link}">
39 40
        <i:formatDate value="${build.timestamp.time}" type="both" dateStyle="medium" timeStyle="medium"/>
      </a>
M
mindless 已提交
41 42
    </td>
    <td class="middle-align">
43 44
      <j:set var="badges" value="${build.badgeActions}"/>
      <j:if test="${!empty(badges)}">
45
        <st:nbsp/>
46 47 48
        <j:forEach var="badge" items="${badges}">
          <st:include it="${badge}" page="badge.jelly" />
        </j:forEach>
49 50 51 52
      </j:if>
    </td>
  </tr>
  <j:if test="${build.building}">
K
kohsuke 已提交
53
    <j:set target="${it}" property="nextBuildNumberToFetch" value="${build.number}"/>
54
    <tr class="transitive build-progress-bar"><td></td><td colspan="2" style="padding:0">
55 56 57 58
      <table class="middle-align">
        <tr><td>
          <t:buildProgressBar build="${build}"/>
        </td><td style="padding:0">
59
          <!-- Check ABORT permission for Project, Admin permission otherwise -->
60
          <j:if test="${empty(it.owner.ABORT) ? h.hasPermission(app.ADMINISTER) : it.owner.hasPermission(it.owner.ABORT)}">
J
Jesse Glick 已提交
61
            <l:stopButton href="${link}stop" alt="[cancel]"/>
62
          </j:if>
63 64 65 66 67
        </td></tr>
      </table>
    </td></tr>
  </j:if>
  <j:if test="${!empty build.description}">
K
kohsuke 已提交
68
    <tr class="${transitive}">
69
      <td></td>
M
mindless 已提交
70
      <td colspan="2" class="desc">
K
Kohsuke Kawaguchi 已提交
71
        <j:out value="${app.markupFormatter.translate(build.truncatedDescription)}"/>
72 73 74
      </td>
    </tr>
  </j:if>
75
</j:jelly>