From: Belen Barros Pena Date: Fri, 31 Jan 2014 07:08:40 +0000 (+0000) Subject: toaster: Fix for task_color tag X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44c5b3a93a93a464429e8d998aace25f840ae724;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: Fix for task_color tag This patch changes the task_color tag in projecttags.py to make sure it adds the error class to the rows corresponding to failed tasks in the tasks table. Signed-off-by: Belen Barros Pena --- diff --git a/lib/toaster/toastergui/templatetags/projecttags.py b/lib/toaster/toastergui/templatetags/projecttags.py index 667bc384204..042d6927c51 100644 --- a/lib/toaster/toastergui/templatetags/projecttags.py +++ b/lib/toaster/toastergui/templatetags/projecttags.py @@ -75,7 +75,7 @@ def task_color(task_object): """ if not task_object.task_executed: return 'class=muted' - elif task_object.get_outcome_display == 'Failed': + elif task_object.outcome == task_object.OUTCOME_FAILED: return 'class=error' else: return ''