Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1a301e4db7039a149945e946c6a3f5931d0ff802 (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
<!-- **************************************************************************
#
# 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
#        
#
#************************************************************************** --> 


<!-- renders an HTML fragment that shows trend graph -->
<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">
  <h1>
    <img src="${imagesURL}/48x48/monitor.png" alt=""/>
    ${%title(it.displayName)}
  </h1>
  <j:set var="type" value="${request.getParameter('type') ?: 'min'}" />
  <div>
    ${%Timespan}:
    <j:choose>
      <j:when test="${type != 'sec10'}">
        <a href="?type=sec10">${%Short}</a>
      </j:when>
      <j:otherwise>
        ${%Short}
      </j:otherwise>
    </j:choose>
    <st:nbsp />
    <j:choose>
      <j:when test="${type != 'min'}">
        <a href="?type=min">${%Medium}</a>
      </j:when>
      <j:otherwise>
        ${%Medium}
      </j:otherwise>
    </j:choose>
    <st:nbsp />
    <j:choose>
      <j:when test="${type != 'hour'}">
        <a href="?type=hour">${%Long}</a>
      </j:when>
      <j:otherwise>
        ${%Long}
      </j:otherwise>
    </j:choose>
  </div>  
  <img src="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300" alt="[${%Load statistics graph}]" />
  <div style="margin-top: 2em;">
    ${%blurb}
  </div>
</j:jelly>

Back to the top