26da36ceb3a3d8d9a6280d8d6d61654db0606a4d
[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="index-status-apex.html">Apex</a></li>
50             <li><a href="index-status-compass.html">Compass</a></li>
51             <li><a href="index-status-fuel.html">Fuel</a></li>
52             <li><a href="index-status-joid.html">Joid</a></li>
53           </ul>
54         </nav>
55       </div>
56 <div class="row">
57     <div class="col-md-1"></div>
58     <div class="col-md-10">
59         <div class="page-header">
60             <h2>{{installer}}</h2>
61         </div>
62
63         <div class="scenario-overview">
64             <div class="panel-heading"><h4><b>List of last scenarios ({{version}}) run over the last {{period}} days </b></h4></div>
65                 <table class="table">
66                     <tr>
67                         <th width="25%">Pod/Scenario</th>
68                         <th width="25%">Trend</th>
69                         <th width="25%">Last 4 Iterations</th>
70                         <th width="25%">Last 10 Days</th>
71                     </tr>
72                         {% for scenario,result in prof_results.iteritems() -%}
73                             <tr class="tr-ok">
74                                 <td>{{scenario}}</td>
75                                 <td><div id="trend_svg{{loop.index}}"></div></td>
76                                 <td>{{prof_results[scenario].getFourDaysScore()}}</td>
77                                 <td>{{prof_results[scenario].getTenDaysScore()}}</td>
78                             </tr>
79                         {%- endfor %}
80                 </table>
81         </div>
82
83
84     </div>
85     <div class="col-md-1"></div>
86 </div>