Change display way of reporting status, add last ten days score
[releng.git] / utils / test / reporting / yardstick / 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="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">
10     $(document).ready(function (){
11         $(".btn-more").click(function() {
12             $(this).hide();
13             $(this).parent().find(".panel-default").show();
14         });
15     })
16     </script>
17   </head>
18     <body>
19     <div class="container">
20       <div class="masthead">
21         <h3 class="text-muted">Yardstick status page ({{version}})</h3>
22         <nav>
23           <ul class="nav nav-justified">
24             <li class="active"><a href="index.html">Home</a></li>
25             <li><a href="index-status-apex.html">Apex</a></li>
26             <li><a href="index-status-compass.html">Compass</a></li>
27             <li><a href="index-status-fuel.html">Fuel</a></li>
28             <li><a href="index-status-joid.html">Joid</a></li>
29           </ul>
30         </nav>
31       </div>
32 <div class="row">
33     <div class="col-md-1"></div>
34     <div class="col-md-10">
35         <div class="page-header">
36             <h2>{{installer}}</h2>
37         </div>
38
39         <div class="scenario-overview">
40             <div class="panel-heading"><h4><b>List of last scenarios ({{version}}) run over the last {{period}} days </b></h4></div>
41                 <table class="table">
42                     <tr>
43                         <th width="40%">Scenario</th>
44                         <th width="20%">Status</th>
45                         <th width="20%">Last 4 Iterations</th>
46                         <th width="20%">Last 10 Days</th>
47                     </tr>
48                         {% for scenario,result in scenario_results.iteritems() -%}
49                             <tr class="tr-ok">
50                                 <td>{{scenario}}</td>
51                                 <td>
52                                     <img src="../../img/gauge_{{ scenario_results[scenario].getStatus() }}.png">
53                                 </td>
54                                 <td>{{scenario_results[scenario].getFourDaysScore()}}</td>
55                                 <td>{{scenario_results[scenario].getTenDaysScore()}}</td>
56                             </tr>
57                         {%- endfor %}
58                 </table>
59         </div>
60
61
62     </div>
63     <div class="col-md-1"></div>
64 </div>