From: Tom Powell <tom@powell.io> Date: Thu, 1 Nov 2018 07:07:02 +0000 (-0700) Subject: round durations to 2 digits X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f474cd7e591ec6cbc80209e00e5abae1dda604cc;p=GitLab%2Fstricted-build%2Flineage_builder.git round durations to 2 digits --- diff --git a/ui/templates/builds.html b/ui/templates/builds.html index 26d500f..a7e8bda 100644 --- a/ui/templates/builds.html +++ b/ui/templates/builds.html @@ -24,7 +24,7 @@ <td>{{build.build_version}}</td> <td>{{build.build_type}}</td> <td>{{build.build_date}}</td> - <td>{% if build.build_duration %}{{build.build_duration / 60}} min{% endif %}</td> + <td>{% if build.build_duration %}{{(build.build_duration / 60) | round(2)}} min{% endif %}</td> <td><a href="/runners/{{build.build_runner.runner_name}}">{{build.build_runner.runner_name}}</a></td> </tr> {% endfor %} diff --git a/ui/templates/runner.html b/ui/templates/runner.html index 62b6fb9..48899d4 100644 --- a/ui/templates/runner.html +++ b/ui/templates/runner.html @@ -29,7 +29,7 @@ <td>{{build.build_version}}</td> <td>{{build.build_type}}</td> <td>{{build.build_date}}</td> - <td>{% if build.build_duration %}{{build.build_duration / 60}} min{% endif %}</td> + <td>{% if build.build_duration %}{{(build.build_duration / 60) | round(2)}} min{% endif %}</td> </tr> {% endfor %} </table>