From 7008a24792704b8e757c583663636addf49f397d Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 13 Feb 2014 13:36:54 +0000 Subject: bitbake: toastergui: fix task executed status display The proper way to get a display-able value in Django is to use a model method instead of clutter the template with if/else. [YOCTO #5641] (Bitbake rev: bb21b71dab70db163b804c7ebf27b85c59a39112) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/recipe.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/recipe.html') diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index eba15baad3..1adb012189 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html @@ -115,11 +115,7 @@ - {% if task.task_executed %} - Executed - {% else %} - Prebuilt - {% endif %} + {{task.get_executed_display}} {{task.get_outcome_display}} -- cgit v1.2.3-54-g00ecf