aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/builddashboard.html
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-07-13 11:37:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-11 00:08:17 +0100
commit6f9c472d95ee800da079f6b828b956d9f8c67ce6 (patch)
tree72b707c0fc8ee12b0784afb233366b3a5811b5e8 /lib/toaster/toastergui/templates/builddashboard.html
parent98a923ff14188832ac44e0dbafc73bcba10e25da (diff)
downloadbitbake-contrib-6f9c472d95ee800da079f6b828b956d9f8c67ce6.tar.gz
toaster: remove links from time field on failed builds
Failed builds don't have any time data recorded for them, so the time field in the builds table, the time shown in the recent builds area, and the build time shown in the build dashboard should not be links for failed builds. [YOCTO #8443] Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/builddashboard.html')
-rw-r--r--lib/toaster/toastergui/templates/builddashboard.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html
index 07fc26c6d..61ae583d2 100644
--- a/lib/toaster/toastergui/templates/builddashboard.html
+++ b/lib/toaster/toastergui/templates/builddashboard.html
@@ -38,8 +38,15 @@
{% endif %}
<span class="pull-right">
Build time:
- <a class="alert-link" href="{% url 'buildtime' build.pk %}">{{ build.timespent_seconds|sectohms }}</a>
- </span>
+ <span data-build-field="buildtime">
+ {% if build.outcome == build.SUCCEEDED %}
+ <a href="{% url 'buildtime' build.pk %}">{{ build.timespent_seconds|sectohms }}</a>
+ {% else %}
+ {{ build.timespent_seconds|sectohms }}
+ {% endif %}
+ </span>
+ </span>
+
{%endif%}
</div>