diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-07-13 11:37:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-11 00:09:26 +0100 |
commit | dce503764653051ddb1b3d67eb7d6059b8d31f92 (patch) | |
tree | 84afd9f5c9f14439f976bb49e2d7cddf2c27c342 /bitbake/lib/toaster/toastergui/tables.py | |
parent | 9ed45f79745207f96dbd3cb6d9ef40ea8fcde42a (diff) | |
download | poky-dce503764653051ddb1b3d67eb7d6059b8d31f92.tar.gz |
bitbake: 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]
(Bitbake rev: 6f9c472d95ee800da079f6b828b956d9f8c67ce6)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 79673f5dab..969eb04aaa 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -1197,9 +1197,13 @@ class BuildsTable(ToasterTable): | |||
1197 | 1197 | ||
1198 | time_template = ''' | 1198 | time_template = ''' |
1199 | {% load projecttags %} | 1199 | {% load projecttags %} |
1200 | <a href="{% url "buildtime" data.id %}"> | 1200 | {% if data.outcome == extra.Build.SUCCEEDED %} |
1201 | <a href="{% url "buildtime" data.id %}"> | ||
1202 | {{data.timespent_seconds | sectohms}} | ||
1203 | </a> | ||
1204 | {% else %} | ||
1201 | {{data.timespent_seconds | sectohms}} | 1205 | {{data.timespent_seconds | sectohms}} |
1202 | </a> | 1206 | {% endif %} |
1203 | ''' | 1207 | ''' |
1204 | 1208 | ||
1205 | image_files_template = ''' | 1209 | image_files_template = ''' |