Merge "Add the function of yardstick testcase reporter"
[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="60%">Scenario</th>
44                         <th width="20%">Status</th>
45                         <th width="20%">Score</th>
46                     </tr>
47                         {% for scenario,result in scenario_results.iteritems() -%}
48                             <tr class="tr-ok">
49                                 <td>{{scenario}}</td>
50                                 <td>
51                                     {%if scenario_results[scenario].getStatus() is sameas "OK" -%}
52                                     <img src="../../img/icon-ok.png">
53                                     {%- else -%}
54                                     <img src="../../img/icon-nok.png">
55                                     {%- endif %}
56                                 </td>
57                                 <td>{{scenario_results[scenario].getScore()}}</td>
58                             </tr>
59                         {%- endfor %}
60                 </table>
61         </div>
62
63
64     </div>
65     <div class="col-md-1"></div>
66 </div>