diff options
Diffstat (limited to 'obbenchlib/templates/benchmark.j2')
-rw-r--r-- | obbenchlib/templates/benchmark.j2 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/obbenchlib/templates/benchmark.j2 b/obbenchlib/templates/benchmark.j2 new file mode 100644 index 0000000..1a723a1 --- /dev/null +++ b/obbenchlib/templates/benchmark.j2 @@ -0,0 +1,38 @@ +<html> + <head> + <title>Obnam benchmark: {{ benchmark_name }}</title> + <link rel="stylesheet" href="obbench.css" type="text/css" /> + </head> + <body> + <h1>Obnam benchmark: {{ benchmark_name }}</h1> + + <p><a href="index.html">Front page</a></p> + + {{ description|safe }} + + <table> + <tr> + <th>date</th> + <th>commit</th> + {% for step_name in step_names %} + <th>{{ step_name }}</th> + {% endfor %} + <th>total</th> + </tr> + {% for row in table_rows %} + <tr> + <td>{{ row.commit_date }}</td> + <td>{{ '%.7s'|format(row.commit_id) }}</td> + {% for step in row.steps %} + <td> + <a href="{{ step.filename_txt }}"> + {{ '%.1f'|format(step.duration) }} + </a> + </td> + {% endfor %} + <td>{{ '%.1f'|format(row.total) }}</td> + </tr> + {% endfor %} + </table> + </body> +</html> |