diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-10-25 18:49:20 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-11-01 11:46:01 +0000 |
commit | f5ccdbdeccd010b47840cd90f2f8f88c59f4c1da (patch) | |
tree | 6812036ab71b0c40300c8b9d924a2211da320b43 /plans/templates/_test_details.html | |
parent | df73087277c1062ae6d1d7f781d5a5a386681ced (diff) |
plans: added test plan rendering script
Change-Id: I3765f688be40dc6fe0a91a9ed6ed72cc3dfd88db
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'plans/templates/_test_details.html')
-rw-r--r-- | plans/templates/_test_details.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plans/templates/_test_details.html b/plans/templates/_test_details.html new file mode 100644 index 0000000..ed7d41d --- /dev/null +++ b/plans/templates/_test_details.html @@ -0,0 +1,22 @@ +<table class="table table-striped"> + {% if 'filename' in test and test.filename != "" %} + <h4><a href="{{ test.filename }}">details</a></h4> + {% endif %} + <tbody> + {% for key,value in test.items() %} + {% if key != 'missing' and key != 'filename' %} + <tr> + <td>{{ key }}</td> + <td> + {% if value is mapping %} + {% for subkey,subvalue in value.items() %} + <strong>{{ subkey }}</strong>: {{ subvalue }}<br/> + {% endfor %} + {% else %} + {{ value }} + {% endif %} + </tr> + {% endif %} + {% endfor %} + </tbody> +</table> |