index.jelly 1.4 KB
Newer Older
K
kohsuke 已提交
1
<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">
K
kohsuke 已提交
2
  <l:layout title="${it.owner} test - ${it.displayName}">
K
kohsuke 已提交
3 4 5 6
    <st:include it="${it.owner}" page="sidepanel.jelly" />
    <l:main-panel>
      <j:set var="st" value="${it.status}" />
      <h1 class="${st.cssClass}">
7
        <st:out value="${st.message}" />
K
kohsuke 已提交
8 9
      </h1>
      <p style="font-weight:bold">
10
        <st:out value="${it.fullName}"/>
K
kohsuke 已提交
11 12 13
      </p>
      <j:if test="${!it.passed}">
        <div style="text-align:right;">
14 15
          <j:choose>
            <j:when test="${it.skipped}">
K
i18n  
kohsuke 已提交
16
              ${%skippedFor(it.age)}
17 18
            </j:when>
            <j:otherwise>
K
i18n  
kohsuke 已提交
19
              ${%failingFor(it.age)}
20 21
            </j:otherwise>
          </j:choose>
K
i18n  
kohsuke 已提交
22
          (${%since.before}<t:buildLink job="${it.owner.project}" number="${it.failedSince}"/>${%since.after})
K
kohsuke 已提交
23 24
        </div>
      </j:if>
K
kohsuke 已提交
25 26

        <div style="text-align:right;">
K
i18n  
kohsuke 已提交
27
          ${%took(it.durationString)}
K
kohsuke 已提交
28 29
        </div>
      
K
kohsuke 已提交
30 31 32
      <pre><st:out value="${it.errorStackTrace}"/></pre>

      <j:if test="${!empty(it.parent.stdout)}">
K
i18n  
kohsuke 已提交
33
        <h3>${%Standard Output}</h3>
K
kohsuke 已提交
34 35 36 37
        <pre><st:out value="${it.parent.stdout}" /></pre>
      </j:if>

      <j:if test="${!empty(it.parent.stderr)}">
K
i18n  
kohsuke 已提交
38
        <h3>${%Standard Error}</h3>
K
kohsuke 已提交
39 40 41 42 43
        <pre><st:out value="${it.parent.stderr}" /></pre>
      </j:if>
    </l:main-panel>
  </l:layout>
</j:jelly>