diff options
| author | Ravi Chintakunta <ravi.chintakunta@timesys.com> | 2014-01-10 16:43:24 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-27 21:01:06 +0000 |
| commit | 47d19237ef6c492f7c2226952f8094d853893754 (patch) | |
| tree | 5cbb90139b6bbd56638bfa8c3978c2a048868e4d /bitbake/lib/toaster/toastergui/templates/tasks.html | |
| parent | 84b239086dbd53c59d51f4e0779767a72af02d2b (diff) | |
| download | poky-47d19237ef6c492f7c2226952f8094d853893754.tar.gz | |
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 <ravi.chintakunta@timesys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/tasks.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/tasks.html | 67 |
1 files changed, 67 insertions, 0 deletions
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 @@ | |||
| 1 | {% extends "basebuildpage.html" %} | ||
| 2 | {% load projecttags %} | ||
| 3 | {% block localbreadcrumb %} | ||
| 4 | <li>All tasks</li> | ||
| 5 | {% endblock %} | ||
| 6 | |||
| 7 | {% block buildinfomain %} | ||
| 8 | <div class="span10"> | ||
| 9 | <div class="page-header"> | ||
| 10 | <h1> Tasks </h1> | ||
| 11 | </div> | ||
| 12 | {% include "basetable_top.html" %} | ||
| 13 | |||
| 14 | |||
| 15 | {% if not objects %} | ||
| 16 | <p>No tasks were executed in this build!</p> | ||
| 17 | {% else %} | ||
| 18 | {% for task in objects %} | ||
| 19 | <tr {{ task|task_color }} > | ||
| 20 | <td class="order"> | ||
| 21 | <a href="{%url "task" build.pk task.pk%} ">{{task.order}}</a> | ||
| 22 | </td> | ||
| 23 | <td class="recipe_name" > | ||
| 24 | <a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.name}}</a> | ||
| 25 | </td> | ||
| 26 | <td class="recipe_version"> | ||
| 27 | <a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.version}}</a> | ||
| 28 | </td> | ||
| 29 | <td class="task_name"> | ||
| 30 | <a href="{%url "task" build.pk task.pk%} ">{{task.task_name}}</a> | ||
| 31 | </td> | ||
| 32 | <td class="executed"> | ||
| 33 | <a href="{%url "task" build.pk task.pk%} "> | ||
| 34 | {% if task.task_executed %} | ||
| 35 | Executed | ||
| 36 | {% else %} | ||
| 37 | Not executed | ||
| 38 | {% endif %} | ||
| 39 | </a> | ||
| 40 | </td> | ||
| 41 | <td class="outcome"> | ||
| 42 | <a href="{%url "task" build.pk task.pk%} ">{{task.get_outcome_display}}</a> | ||
| 43 | </td> | ||
| 44 | <td class="cache_attempt"> | ||
| 45 | <a href="{%url "task" build.pk task.pk%} ">{{task.get_sstate_result_display|format_none_and_zero}}</a> | ||
| 46 | </td> | ||
| 47 | <td class="time_taken"> | ||
| 48 | {{task.elapsed_time|format_none_and_zero}} | ||
| 49 | </td> | ||
| 50 | <td class="cpu_used"> | ||
| 51 | {{task.cpu_usage|format_none_and_zero}} | ||
| 52 | </td> | ||
| 53 | <td class="disk_io"> | ||
| 54 | {{task.disk_io|format_none_and_zero}} | ||
| 55 | </td> | ||
| 56 | <td class="task_log"> | ||
| 57 | {{task.logfile}} | ||
| 58 | </td> | ||
| 59 | </tr> | ||
| 60 | |||
| 61 | {% endfor %} | ||
| 62 | |||
| 63 | {% endif %} | ||
| 64 | |||
| 65 | {% include "basetable_bottom.html" %} | ||
| 66 | </div> | ||
| 67 | {% endblock %} | ||
