Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 188a6e9891aa190f1188a274682171a9f407efc0
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Mon Aug 3 12:30:42 2015 +0200
[frontend] fix {started,ended}_on time marks for entire build
---------------------------------------------------------------
.../templates/coprs/detail/_builds_table.html | 2 +-
.../coprs/templates/coprs/detail/build.html | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html
b/frontend/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html
index 6a8d378..99b8146 100644
--- a/frontend/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html
+++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/_builds_table.html
@@ -32,7 +32,7 @@
{% endif %}
</td>
<td> {{ build.submitted_on|time_ago() }} ago </td>
- <td> {{ build.started_on|time_ago(build.ended_on) }} </td>
+ <td> {{ build.min_started_on|time_ago(build.max_ended_on) }} </td>
<td class="build-{{build.state}}"
abbr="{{build.state|build_state_description}}">{{ build.state }}</td>
</tr>
{% endfor %}
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
b/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
index 6e7146e..eb311f5 100644
--- a/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
+++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
@@ -57,22 +57,22 @@
<dt> Started: </dt>
<dd>
{% if g.user %}
- {{ build.started_on|localized_time(g.user.timezone) }}
+ {{ build.min_started_on|localized_time(g.user.timezone) }}
{% else %}
- {{ build.started_on|localized_time("UTC") }}
+ {{ build.min_started_on|localized_time("UTC") }}
{% endif %}
</dd>
<dt> Finished: </dt>
<dd>
{% if g.user %}
- {{ build.ended_on|localized_time(g.user.timezone) }}
+ {{ build.max_ended_on|localized_time(g.user.timezone) }}
{% else %}
- {{ build.ended_on|localized_time("UTC") }}
+ {{ build.max_ended_on|localized_time("UTC") }}
{% endif %}
</dd>
<dt> Build time: </dt>
<dd>
- {{ build.started_on|time_ago(build.ended_on) }}
+ {{ build.min_started_on|time_ago(build.max_ended_on) }}
</dd>
<dt> Networking enabled: </dt>
<dd>