diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-02-20 07:06:51 +0000 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-03-14 17:55:04 +0000 |
commit | bbc22958ab37dcd44c03420a7b8f842a1f4e51b1 (patch) | |
tree | f7c9a8d1b572047561f9c6b8b9d3b40ed755ea63 /lib/toaster/toastergui/templatetags | |
parent | 6147339ac2f93a9e60eed8975ac1784caa06bb0b (diff) | |
download | bitbake-bbc22958ab37dcd44c03420a7b8f842a1f4e51b1.tar.gz |
toaster: Presentation fixes for task.html
Tidying up the presentation in the task.html template.
The changes include:
* Correct the markup for the help tooltips
* Fix the help content for the outcome heading
* Make sure <dt> tags do not show for empty log
file, time, cpu and disk I/O values
* Eliminate an extra <dl> for tasks with sstate attempts
* Add <strong> tag to the sstate restored alert
* Replace the .alert-info class with the .muted class
for the no dependencies messages
* Make sure the Executed heading does not inherit
the .red class for failed tasks
* Format time and cpu values to make sure they only
show 2 decimal digits
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templatetags')
-rw-r--r-- | lib/toaster/toastergui/templatetags/projecttags.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/templatetags/projecttags.py b/lib/toaster/toastergui/templatetags/projecttags.py index 857680b35..2d339d623 100644 --- a/lib/toaster/toastergui/templatetags/projecttags.py +++ b/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_green=False): +def task_color(task_object, show_colour=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: + elif task_object.outcome == task_object.OUTCOME_FAILED and show_colour: return 'class=error' - elif task_object.outcome == task_object.OUTCOME_SUCCESS and show_green: + elif task_object.outcome == task_object.OUTCOME_SUCCESS and show_colour: return 'class=green' else: return '' |