Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 79bdabbd04ebf02a32da7711af3c7bd1dd9811c6 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!-- **************************************************************************
#
# 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">
  <l:layout>
    <l:header title="${it.fileName}">
      <!-- RSS? -->
    </l:header>
    <l:side-panel>
      <l:tasks>
        <l:task icon="images/24x24/up.gif" href="${rootURL}/" title="${%Back to Dashboard}" />
      </l:tasks>
    </l:side-panel>
    <l:main-panel>
      <h1>
        <img src="${imagesURL}/48x48/fingerprint.gif" alt=""/>
        ${it.fileName}
      </h1>
      <div class="md5sum">
        MD5: ${it.hashString}
      </div>
      <div>
        ${%introduced(it.timestampString)}
        <j:choose>
          <j:when test="${it.original==null}">
            ${%outside Hudson}
          </j:when>
          <j:otherwise>
            <t:buildLink job="${it.original.job}" number="${it.original.number}" jobName="${it.original.name}" />
          </j:otherwise>
        </j:choose>
      </div>
      <h2>${%Usage}</h2>
      <j:set var="jobs" value="${it.jobs}"/>
      <j:choose>
        <j:when test="${empty(jobs)}">
          <p>
            ${%This file has not been used anywhere else.}
          </p>
        </j:when>
        <j:otherwise>
          <p>
            ${%This file has been used in the following places}:
          </p>
          <table class="fingerprint-summary">
            <j:forEach var="j" items="${it.jobs}">
              <j:set var="job" value="${app.getItemByFullName(j)}" />
              <j:set var="range" value="${it.usages[j]}" />
              <tr>
                <td class="fingerprint-summary-header">
                  <j:choose>
                    <j:when test="${job!=null}">
                      <a href="${rootURL}/${job.url}">${j}</a>
                    </j:when>
                    <j:otherwise>
                      ${j}
                    </j:otherwise>
                  </j:choose>
                </td>
                <td>
                  <t:buildRangeLink job="${job}" range="${range}" />
                </td>
              </tr>
            </j:forEach>
          </table>
        </j:otherwise>
      </j:choose>
    </l:main-panel>
  </l:layout>
</j:jelly>

Back to the top