summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-02-06 11:35:29 +0200
committerLars Wirzenius <liw@liw.fi>2016-02-06 11:35:29 +0200
commit43ef20a672897496df2ef1cedadeef21a4c8127a (patch)
tree474124c1b1d021222117dbf18e6c4221a134de79
parent4c7ea5d0407d8f0582b24d237302a46787bbd94f (diff)
downloadobnam-benchmarks-43ef20a672897496df2ef1cedadeef21a4c8127a.tar.gz
Align columns correctly
There's still a problem that different benchmarks for one commit go on separate lines.
-rw-r--r--obbenchlib/templates/index.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/obbenchlib/templates/index.j2 b/obbenchlib/templates/index.j2
index 4d84a98..7dbadd5 100644
--- a/obbenchlib/templates/index.j2
+++ b/obbenchlib/templates/index.j2
@@ -19,9 +19,11 @@
<td>{{ row.commit_date }}</td>
<td>{{ '%.7s'|format(row.commit_id) }}</td>
{% for name in benchmark_names %}
- {% if name in row %}
- <td><a href="{{ name }}.html">{{ '%.1f'|format(row[name]) }}</a></td>
- {% endif %}
+ <td>
+ {% if name in row %}
+ <a href="{{ name }}.html">{{ '%.1f'|format(row[name]) }}</a>
+ {% endif %}
+ </td>
{% endfor %}
</tr>
{% endfor %}