1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

bitbake: toaster: Fix help text for task details outcome

Changes made to models.py and task.html to make sure the
help text for the task outcome is displayed.

[YOCTO #5917]

(Bitbake rev: f3001af0b73f103a5d37af180e8c4c54a6249e97)

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Belen Barros Pena
2014-02-21 08:58:01 +00:00
committed by Richard Purdie
parent 6b4aedc0c9
commit 65c298dedf
2 changed files with 11 additions and 11 deletions
+10 -10
View File
@@ -140,14 +140,14 @@ class Task(models.Model):
(OUTCOME_EMPTY, 'Empty'), (OUTCOME_EMPTY, 'Empty'),
) )
TASK_OUTCOME_HELP = { TASK_OUTCOME_HELP = (
OUTCOME_SUCCESS:'This task completed successfully', (OUTCOME_SUCCESS, 'This task completed successfully'),
OUTCOME_COVERED:'This task did not run because its output is provided by another task', (OUTCOME_COVERED, 'This task did not run because its output is provided by another task'),
OUTCOME_CACHED:'This task restored output from the sstate-cache directory or mirrors', (OUTCOME_CACHED, 'This task restored output from the sstate-cache directory or mirrors'),
OUTCOME_PREBUILT:'This task did not run because its outcome was reused from a previous build', (OUTCOME_PREBUILT, 'This task did not run because its outcome was reused from a previous build'),
OUTCOME_FAILED:'This task did not complete', (OUTCOME_FAILED, 'This task did not complete'),
OUTCOME_NA:'' (OUTCOME_NA, ''),
} )
search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ] search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ]
@@ -156,8 +156,8 @@ class Task(models.Model):
def get_related_setscene(self): def get_related_setscene(self):
return Task.objects.related_setscene(self) return Task.objects.related_setscene(self)
def outcome_help(self): def get_outcome_help(self):
return Task.TASK_OUTCOME_HELP[self.outcome] return Task.TASK_OUTCOME_HELP[self.outcome][1]
def get_executed_display(self): def get_executed_display(self):
if self.task_executed: if self.task_executed:
@@ -18,7 +18,7 @@
{# Outcome section #} {# Outcome section #}
<h2 {{ task|task_color:True }}> <h2 {{ task|task_color:True }}>
{{task.get_outcome_display}} {{task.get_outcome_display}}
<i class="icon-question-sign get-help heading-help" title="" data-original-title="{{task.outcome_help}}"></i> <i class="icon-question-sign get-help heading-help" title="{{task.get_outcome_help}}"></i>
</h2> </h2>
{%if task.task_executed %} {%if task.task_executed %}
{# executed tasks outcome #} {# executed tasks outcome #}