7a0656b74f1140f248c0f20230026956cb1e877a
[releng.git] / utils / test / reporting / functest / 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">Functest 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="10%">Score</th>
46                         <th width="10%">Iteration</th>
47                     </tr>
48                         {% for scenario,iteration in scenario_stats.iteritems() -%}
49                             <tr class="tr-ok">
50                                 <td>{{scenario}}</td>
51                                 <td>{%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 %}</td>
56                                 <td>{{scenario_results[scenario].getScore()}}</td>
57                                 <td>{{iteration}}</td>
58                             </tr>
59                             {%- endfor %}
60                         </table>
61         </div>
62
63
64         {% for scenario, iteration in scenario_stats.iteritems() -%}
65         <div class="scenario-part">
66             <div class="page-header">
67                 <h3><span class="glyphicon glyphicon-chevron-right"> <b>{{scenario}}</b></h3>
68             </div>
69                     <div class="panel panel-default">
70                     <div class="panel-heading">
71                         <span class="panel-header-item">
72                         </span>
73                     </div>
74                     <table class="table">
75                         <tr>
76                             {% for test in items[scenario] -%}
77                             <th>{{test.getName() }}</th>
78                             {%- endfor %}
79                         </tr>
80                         <tr class="tr-weather-weather">
81                             {% for test in items[scenario] -%}
82                             {% if test.isRunnable is sameas false -%}
83                                 <td>N.R</td>
84                             {% elif test.getCriteria() > 2 -%}
85                                 <td><img src="../../img/weather-clear.png"></td>
86                             {%- elif test.getCriteria() > 1 -%}
87                                 <td><img src="../../img/weather-few-clouds.png"></td>
88                             {%- elif test.getCriteria() > 0 -%}
89                                 <td><img src="../../img/weather-overcast.png"></td>
90                             {%- else -%}
91                                 <td><img src="../../img/weather-storm.png"></td>
92                             {%- endif %}
93                             {%- endfor %}
94                         </tr>
95                     </table>
96                 </div>
97         </div>
98         {%- endfor %}
99     </div>
100     <div class="col-md-1"></div>
101 </div>