Revert of wrong fix for GROOVY-2138
[groovy.git] / cruise / reporting-app / metrics.jsp
blobd1f531f7b043588c6461c713008b8e5e71f53c3e
1 <%@page import="net.sourceforge.cruisecontrol.*, net.sourceforge.cruisecontrol.chart.*"%>
2 <%@taglib uri='WEB-INF/lib/cewolf.jar' prefix='cewolf' %>
3 <%@ taglib uri="/WEB-INF/cruisecontrol-jsp11.tld" prefix="cruisecontrol"%>
5 <cruisecontrol:buildInfo />
7 <table>
8 <tr><td>Number of Build Attempts</td><td><%=build_info.size() %></td></tr>
9 <tr><td>Number of Broken Builds</td><td><%=build_info.getNumBrokenBuilds() %></td></tr>
10 <tr><td>Number of Successful Builds</td><td><%=build_info.getNumSuccessfulBuilds() %></td></tr>
11 </table>
13 <hr />
14 <jsp:useBean id="pieData" class="net.sourceforge.cruisecontrol.chart.PieChartData" />
15 <cewolf:chart id="pie" title="Breakdown of build types" type="pie" >
16 <cewolf:data>
17 <cewolf:producer id="pieData">
18 <cewolf:param name="buildInfo" value="<%=build_info%>" />
19 </cewolf:producer>
20 </cewolf:data>
21 </cewolf:chart>
22 <cewolf:img chartid="pie" renderer="cewolf" width="400" height="300"/>
24 <hr />
25 <jsp:useBean id="chartData" class="net.sourceforge.cruisecontrol.chart.TimeChartData" />
26 <cewolf:chart id="chart" title="Breakdown of build types" type="timeseries" xaxislabel="date" yaxislabel="time">
27 <cewolf:data>
28 <cewolf:producer id="chartData">
29 <cewolf:param name="buildInfo" value="<%=build_info%>" />
30 </cewolf:producer>
31 </cewolf:data>
32 <cewolf:chartpostprocessor id="chartData" />
33 </cewolf:chart>
34 <cewolf:img chartid="chart" renderer="cewolf" width="400" height="300"/>