summaryrefslogtreecommitdiff
path: root/obbenchlib/templates/index.j2
diff options
context:
space:
mode:
Diffstat (limited to 'obbenchlib/templates/index.j2')
-rw-r--r--obbenchlib/templates/index.j228
1 files changed, 28 insertions, 0 deletions
diff --git a/obbenchlib/templates/index.j2 b/obbenchlib/templates/index.j2
new file mode 100644
index 0000000..3212abb
--- /dev/null
+++ b/obbenchlib/templates/index.j2
@@ -0,0 +1,28 @@
+<html>
+ <head>
+ <title>Obnam benchmarks</title>
+ <link rel="stylesheet" href="obbench.css" type="text/css" />
+ </head>
+ <body>
+ <h1>Obnam benchmarks</h1>
+ {{ description|safe }}
+ <table>
+ <tr>
+ <th>date</th>
+ <th>commit</th>
+ {% for name in benchmark_names %}
+ <th>{{ name }}</th>
+ {% endfor %}
+ </tr>
+ {% for row in results_table %}
+ <tr>
+ <td>{{ row.commit_date }}</td>
+ <td>{{ '%.7s'|format(row.commit_id) }}</td>
+ {% for name in benchmark_names %}
+ <td><a href="{{ name }}.html">{{ '%.1f'|format(row[name]) }}</a></td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </table>
+ </body>
+</html>