From 64ba1fa80518cab3fba8d4dd418ebd0e79ebb6d1 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Sat, 15 Mar 2014 17:04:50 +0000 Subject: bitbake: toaster: Small fixes in tasks UI This commit: * Fixes an issue with white space when showing the log in Cached tasks (task details page) * Formats the no results alert of the "Prebuilt task could be based on" search in the task details page * Brings in the task outcome help text to "Prebuilt task could be based on" table in the task details page, to the tasks table in the recipe details page, and to the all tasks page * Adds the task_color tag to the "Prebuilt task could be based on" table in the task details page, so that each task gets the required visual treatment based on execution * Makes sure performance information for not executed tasks shows in the task details page when it exists (empty tasks often report a short time, for example) (Bitbake rev: ff46fd6d8db52eeabe8c938c347ce5ba8d328cc1) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/recipe.html | 6 ++++-- bitbake/lib/toaster/toastergui/templates/task.html | 18 ++++++++---------- bitbake/lib/toaster/toastergui/templates/tasks.html | 3 ++- 3 files changed, 14 insertions(+), 13 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index 716ddfac96..e367077a01 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html @@ -117,11 +117,13 @@ {{task.get_executed_display}} - {{task.get_outcome_display}} + + {{task.get_outcome_display}} + + {% ifnotequal task.sstate_result task.SSTATE_NA %} {{task.get_sstate_result_display}} - {% endifnotequal %} diff --git a/bitbake/lib/toaster/toastergui/templates/task.html b/bitbake/lib/toaster/toastergui/templates/task.html index 7c5b7435ff..1a7e9d4c04 100644 --- a/bitbake/lib/toaster/toastergui/templates/task.html +++ b/bitbake/lib/toaster/toastergui/templates/task.html @@ -76,7 +76,7 @@ {% for match in matching_tasks %} - + {{match.recipe.name}} @@ -87,7 +87,7 @@ {{match.get_executed_display}} - {{match.get_outcome_display}} + {{match.get_outcome_display}} {{match.build.completed_on|date:"d/m/y H:i"}} @@ -98,8 +98,8 @@ {% else %}

- We have found no tasks matching this prebuilt task.
- The task you are looking for could belong to a build for which Toaster has not data. + We have found no tasks matching this prebuilt task
+ The task you are looking for could belong to a build for which Toaster has no data.

{% endif %} {% elif task.outcome == task.OUTCOME_COVERED %} @@ -119,8 +119,7 @@ Log file
- {% for t in task.get_related_setscene %} {{t.logfile}}
{% endfor %} -
+ {% for t in task.get_related_setscene %} {{t.logfile}} {% endfor %}
{%elif task.outcome == task.OUTCOME_EMPTY%} @@ -243,10 +242,11 @@ {# Performance section - shown only for executed tasks #} -{%if task.task_executed %} +{%if task.elapsed_time or task.cpu_usage or task.disk_io %}

Performance

+{% endif %}
- {% if task.elapsed_time > 0.01 %} + {% if task.elapsed_time %}
Time (secs) @@ -268,8 +268,6 @@
{{task.disk_io|format_none_and_zero}}
{% endif %}
-{%endif%} - {% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index a2629dc1cb..ace30de3eb 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html @@ -51,7 +51,8 @@ {{task.get_executed_display}} - {{task.get_outcome_display}} + {{task.get_outcome_display}} + {{task.get_sstate_result_display|format_none_and_zero}} -- cgit v1.2.3-54-g00ecf