build name added
diff --git a/web_app/__init__.py b/web_app/__init__.py
index 88f8fac..3f4d38a 100644
--- a/web_app/__init__.py
+++ b/web_app/__init__.py
@@ -74,6 +74,7 @@
d["name"] = build['type']
d["url"] = url_for("render_test", test_name=build['type'])
d["date"] = build['date']
+ d["name"] = build['name']
data.append(d)
return data
@@ -85,6 +86,7 @@
m.build_type = build.pop("type")
m.md5 = build.pop("iso_md5")
m.date = build.pop("date")
+ m.date = build.pop("name")
m.results = {k: v for k, v in build.items()}
return m
diff --git a/web_app/templates/index.html b/web_app/templates/index.html
index d0729c2..ec7f21c 100644
--- a/web_app/templates/index.html
+++ b/web_app/templates/index.html
@@ -10,6 +10,7 @@
{% block body %}
<h2 align="center">Tests report : </h2>
<table align="center" class="table table-striped" style="width: 70%; ">
+ <th>Build type</th>
<th>Build name</th>
<th> Date </th>
{% for test in tests %}
@@ -18,6 +19,9 @@
<a href="{{ test.url }} ">{{ test.name }}</a>
</td>
<td>
+ {{ test.name }}
+ </td>
+ <td>
{{ test.date }}
</td>
</tr>
diff --git a/web_app/templates/test.html b/web_app/templates/test.html
index aba2f60..1870049 100644
--- a/web_app/templates/test.html
+++ b/web_app/templates/test.html
@@ -15,16 +15,16 @@
<div id="images">
<table align="center" class="table table-bordered">
{% for url in urls %}
- {% if loop.index is divisibleby 2 %}
- <tr>
- <td>
- <img src="{{ url }}">
- </td>
- {% else %}
- <td>
+ {% if loop.index is divisibleby 2 %}
+ <td>
<img src="{{ url }}">
</td>
</tr>
+ {% else %}
+ <tr>
+ <td>
+ <img src="{{ url }}">
+ </td>
{% endif %}
{% endfor %}
</table>