summaryrefslogtreecommitdiffstats
path: root/reporting/reporting/functest/template/index-status-tmpl.html
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2018-09-12 07:19:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-09-12 07:19:43 +0000
commitfda356248fc00a07893f55c2913bb6ea222a528f (patch)
tree1822ea226a291ecb06cf0bc6062bc039966f84e6 /reporting/reporting/functest/template/index-status-tmpl.html
parent3335148cf663d72b05d0f88960e557b0ad9af343 (diff)
parent5239734ebfeacec1c1b30741a75d6725a9a149d9 (diff)
Merge "Fix reporting pages for functest"
Diffstat (limited to 'reporting/reporting/functest/template/index-status-tmpl.html')
-rw-r--r--reporting/reporting/functest/template/index-status-tmpl.html25
1 files changed, 12 insertions, 13 deletions
diff --git a/reporting/reporting/functest/template/index-status-tmpl.html b/reporting/reporting/functest/template/index-status-tmpl.html
index 50fc648..48b5a2d 100644
--- a/reporting/reporting/functest/template/index-status-tmpl.html
+++ b/reporting/reporting/functest/template/index-status-tmpl.html
@@ -144,33 +144,32 @@ $(document).ready(function (){
<span class="panel-header-item">
</span>
</div>
+ {% for tier in ['healthcheck', 'smoke', 'vnf', 'features'] -%}
<table class="table">
<tr>
+ <h2>{{tier}}</h2>
{% for test in items[scenario] -%}
- <th>
- {% if test.getCriteria() > -1 -%}
- {{test.getDisplayName() }}
+ {% if test.getCriteria() > -1 and test.getTier() == tier -%}
+ <th>{{test.getDisplayName() }}</th>
{%- endif %}
- {% if test.getTier() > 3 -%}
- *
- {%- endif %}
- </th>
- {%- endfor %}
+ {%- endfor %}
</tr>
<tr class="tr-weather-weather">
- {% for test in items[scenario] -%}
- {% if test.getCriteria() > 2 -%}
+ {% for test in items[scenario] -%}
+ {% if test.getCriteria() > 2 and test.getTier() == tier -%}
<td><img src="../../img/weather-clear.png"></td>
- {%- elif test.getCriteria() > 1 -%}
+ {%- elif test.getCriteria() > 1 and test.getTier() == tier -%}
<td><img src="../../img/weather-few-clouds.png"></td>
- {%- elif test.getCriteria() > 0 -%}
+ {%- elif test.getCriteria() > 0 and test.getTier() == tier -%}
<td><img src="../../img/weather-overcast.png"></td>
- {%- elif test.getCriteria() > -1 -%}
+ {%- elif test.getCriteria() > -1 and test.getTier() == tier -%}
<td><img src="../../img/weather-storm.png"></td>
{%- endif %}
{%- endfor %}
</tr>
</table>
+ <br><hr>
+ {%- endfor %}
</div>
</div>
{%- endfor %}