summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-02-27 17:17:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-09 14:33:52 +0000
commit74bb0fb3c194e1ca2df4d3745f952955b8227e7d (patch)
tree79b9432c362e01043547312fce6232517d21ed0f /bitbake
parentd2c9f704f2232a80b8bd0cd236d1b7f7bc250116 (diff)
downloadast2050-yocto-poky-74bb0fb3c194e1ca2df4d3745f952955b8227e7d.zip
ast2050-yocto-poky-74bb0fb3c194e1ca2df4d3745f952955b8227e7d.tar.gz
bitbake: toasterui: apply correct class to latest builds targets
Failed builds were showing the target name with the .success class applied (cognitive disonance, anyone?). (Bitbake rev: c78a19ecd2b397ccce59c1f6b852953b04afd37a) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/project.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html
index 9fa682c..54590ee 100644
--- a/bitbake/lib/toaster/toastergui/templates/project.html
+++ b/bitbake/lib/toaster/toastergui/templates/project.html
@@ -202,7 +202,11 @@ vim: expandtab tabstop=2
<case ng-switch-when="completed">
- <div class="lead span3"><a class="success" href="{[b.build[0].build_page_url]}"><span ng-repeat="t in b.targets" ng-include src="'target_display'"></span></a></div>
+ <div class="lead span3">
+ <a ng-class="{'Succeeded': 'success', 'Failed': 'error'}[b.build[0].status]" href="{[b.build[0].build_page_url]}">
+ <span ng-repeat="t in b.targets" ng-include src="'target_display'"></span>
+ </a>
+ </div>
<div class="span2 lead">
<ngif ng-if="b.build[0].completed_on - todaydate > 0">
{[b.build[0].completed_on|date:'HH:mm']}
OpenPOWER on IntegriCloud