From 47d19237ef6c492f7c2226952f8094d853893754 Mon Sep 17 00:00:00 2001 From: Ravi Chintakunta Date: Fri, 10 Jan 2014 16:43:24 -0500 Subject: bitbake: toaster: All Tasks Feature with sorting and filtering - Fixed the all tasks view and template to match the UI design and use the new basetable code. - Added a method to views to add sort order icon to the view context. - Default sort order when the page is loaded is displayed with the sort icon - Filtering of columns (Bitbake rev: b2f8de082c3ae41eb44e6ccdc283849b64d0b0f2) Signed-off-by: Ravi Chintakunta Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/task.html | 74 ---------------------- .../lib/toaster/toastergui/templates/tasks.html | 67 ++++++++++++++++++++ 2 files changed, 67 insertions(+), 74 deletions(-) delete mode 100644 bitbake/lib/toaster/toastergui/templates/task.html create mode 100644 bitbake/lib/toaster/toastergui/templates/tasks.html (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/task.html b/bitbake/lib/toaster/toastergui/templates/task.html deleted file mode 100644 index 6af2c51277..0000000000 --- a/bitbake/lib/toaster/toastergui/templates/task.html +++ /dev/null @@ -1,74 +0,0 @@ -{% extends "basebuildpage.html" %} - -{% block localbreadcrumb %} -
  • Tasks
  • -{% endblock %} - -{% block buildinfomain %} -{% include "basetable_top.html" %} - - - {% if not objects %} -

    No tasks were executed in this build!

    - {% else %} - - - Order - Task - Recipe Version - Task Type - Checksum - Outcome - Message - Time - CPU usage - Disk I/O - Script type - Filesystem - Depends - - - {% for task in objects %} - - - {{task.order}} - - {{task.recipe.name}}.{{task.task_name}} - {{task.recipe.version}} - - {% if task.task_executed %} - Executed - {% else %} - Prebuilt - {% endif %} - - {{task.sstate_checksum}} - {{task.get_outcome_display}}{% if task.provider %}
    (by {{task.provider.recipe.name}}.{{task.provider.task_name}}){% endif %} -

    {{task.message}} - {{task.elapsed_time}} - {{task.cpu_usage}} - {{task.disk_io}} - {{task.get_script_type_display}} - - - - - -
    Recipe{{task.recipe.file_path}}
    Source{{task.file_name}}:{{task.line_number}}
    Workdir{{task.work_directory}}
    Log{{task.logfile}}
    - - -

    - {% for tt in task.task_dependencies_task.all %} - - {{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}
    - {% endfor %} -
    - - - - {% endfor %} - - {% endif %} - -{% include "basetable_bottom.html" %} -{% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html new file mode 100644 index 0000000000..6831f106c0 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html @@ -0,0 +1,67 @@ +{% extends "basebuildpage.html" %} +{% load projecttags %} +{% block localbreadcrumb %} +
  • All tasks
  • +{% endblock %} + +{% block buildinfomain %} +
    + +{% include "basetable_top.html" %} + + + {% if not objects %} +

    No tasks were executed in this build!

    + {% else %} + {% for task in objects %} + + + {{task.order}} + + + {{task.recipe.name}} + + + {{task.recipe.version}} + + + {{task.task_name}} + + + + {% if task.task_executed %} + Executed + {% else %} + Not executed + {% endif %} + + + + {{task.get_outcome_display}} + + + {{task.get_sstate_result_display|format_none_and_zero}} + + + {{task.elapsed_time|format_none_and_zero}} + + + {{task.cpu_usage|format_none_and_zero}} + + + {{task.disk_io|format_none_and_zero}} + + + {{task.logfile}} + + + + {% endfor %} + + {% endif %} + +{% include "basetable_bottom.html" %} +
    +{% endblock %} -- cgit v1.2.3-54-g00ecf