diff --git a/bitbake/lib/toaster/toastergui/templates/task.html b/bitbake/lib/toaster/toastergui/templates/task.html index af994fde1b..7c5b7435ff 100644 --- a/bitbake/lib/toaster/toastergui/templates/task.html +++ b/bitbake/lib/toaster/toastergui/templates/task.html @@ -131,15 +131,16 @@ {% endif %} {# Execution section #} -

{% if task.task_executed %} +

Executed - {% else %} + {% else %} +

Not Executed - {% endif %} -

+ {% endif %} +
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py index 2d339d623f..857680b350 100644 --- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py +++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py @@ -70,16 +70,16 @@ def sortcols(tablecols): return sorted(tablecols, key = lambda t: t['name']) @register.filter -def task_color(task_object, show_colour=False): +def task_color(task_object, show_green=False): """ Return css class depending on Task execution status and execution outcome. By default, green is not returned for executed and successful tasks; show_green argument should be True to get green color. """ if not task_object.task_executed: return 'class=muted' - elif task_object.outcome == task_object.OUTCOME_FAILED and show_colour: + elif task_object.outcome == task_object.OUTCOME_FAILED: return 'class=error' - elif task_object.outcome == task_object.OUTCOME_SUCCESS and show_colour: + elif task_object.outcome == task_object.OUTCOME_SUCCESS and show_green: return 'class=green' else: return ''