bug fix for qtip reporting
[releng.git] / utils / test / reporting / reporting / qtip / template / index-status-tmpl.html
1  <html>
2   <head>
3     <meta charset="utf-8">
4     <!-- Bootstrap core CSS -->
5     <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
6     <link href="../../css/default.css" rel="stylesheet">
7     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
8     <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
9     <script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
10     <script type="text/javascript" src="../../js/trend-qtip.js"></script>
11     <script>
12         // trend line management
13         d3.csv("./scenario_history.csv", function(data) {
14             // ***************************************
15             // Create the trend line
16             {% for scenario in prof_results.keys() -%}
17             // for scenario {{scenario}}
18             // Filter results
19                 var trend{{loop.index}} = data.filter(function(row) {
20                     return row["scenario"]=="{{scenario}}" && row["installer"]=="{{installer}}";
21                 })
22             // Parse the date
23             trend{{loop.index}}.forEach(function(d) {
24                 d.date = parseDate(d.date);
25                 d.score = +d.score
26             });
27             // Draw the trend line
28             var mytrend = trend("#trend_svg{{loop.index}}",trend{{loop.index}})
29             // ****************************************
30             {%- endfor %}
31         });
32     </script>
33     <script type="text/javascript">
34     $(document).ready(function (){
35         $(".btn-more").click(function() {
36             $(this).hide();
37             $(this).parent().find(".panel-default").show();
38         });
39     })
40     </script>
41   </head>
42     <body>
43     <div class="container">
44       <div class="masthead">
45           <h3 class="text-muted">QTIP status page ({{version}}, {{date}})</h3>
46         <nav>
47           <ul class="nav nav-justified">
48             <li class="active"><a href="http://testresults.opnfv.org/reporting/index.html">Home</a></li>
49             <li><a href="status-apex.html">Apex</a></li>
50             <li><a href="status-compass.html">Compass</a></li>
51             <li><a href="status-daisy.html">Daisy</a></li>
52             <li><a href="status-fuel.html">Fuel</a></li>
53             <li><a href="status-joid.html">Joid</a></li>
54           </ul>
55         </nav>
56       </div>
57 <div class="row">
58     <div class="col-md-1"></div>
59     <div class="col-md-10">
60         <div class="page-header">
61             <h2>{{installer}}</h2>
62         </div>
63
64         <div class="scenario-overview">
65             <div class="panel-heading"><h4><b>List of last scenarios ({{version}}) run over the last {{period}} days </b></h4></div>
66                 <table class="table">
67                     <tr>
68                         <th width="25%">Pod/Scenario</th>
69                         <th width="25%">Trend</th>
70                         <th width="25%">Last 4 Iterations</th>
71                         <th width="25%">Last 10 Days</th>
72                     </tr>
73                         {% for scenario,result in prof_results.iteritems() -%}
74                             <tr class="tr-ok">
75                                 <td>{{scenario}}</td>
76                                 <td><div id="trend_svg{{loop.index}}"></div></td>
77                                 <td>{{prof_results[scenario].getFourDaysScore()}}</td>
78                                 <td>{{prof_results[scenario].getTenDaysScore()}}</td>
79                             </tr>
80                         {%- endfor %}
81                 </table>
82         </div>
83
84
85     </div>
86     <div class="col-md-1"></div>
87 </div>