Files
poky/bitbake/lib/toaster/toastergui/templates/tasks.html
Alexandru DAMIAN 7008a24792 bitbake: toastergui: fix task executed status display
The proper way to get a display-able value
in Django is to use a model method instead of clutter
the template with if/else.

	[YOCTO #5641]

(Bitbake rev: bb21b71dab70db163b804c7ebf27b85c59a39112)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-03-09 12:23:57 -07:00

62 lines
2.1 KiB
HTML

{% extends "basebuildpage.html" %}
{% load projecttags %}
{% block localbreadcrumb %}
<li>All tasks</li>
{% endblock %}
{% block buildinfomain %}
<div class="span10">
<div class="page-header">
<h1> Tasks </h1>
</div>
{% include "basetable_top.html" %}
{% if not objects %}
<p>No tasks were executed in this build!</p>
{% else %}
{% for task in objects %}
<tr {{ task|task_color }} >
<td class="order">
<a href="{%url "task" build.pk task.pk%} ">{{task.order}}</a>
</td>
<td class="recipe_name" >
<a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.name}}</a>
</td>
<td class="recipe_version">
<a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.version}}</a>
</td>
<td class="task_name">
<a href="{%url "task" build.pk task.pk%} ">{{task.task_name}}</a>
</td>
<td class="executed">
<a href="{%url "task" build.pk task.pk%} ">{{task.get_executed_display}}</a>
</td>
<td class="outcome">
<a href="{%url "task" build.pk task.pk%} ">{{task.get_outcome_display}}</a>
</td>
<td class="cache_attempt">
<a href="{%url "task" build.pk task.pk%} ">{{task.get_sstate_result_display|format_none_and_zero}}</a>
</td>
<td class="time_taken">
{{task.elapsed_time|format_none_and_zero}}
</td>
<td class="cpu_used">
{{task.cpu_usage|format_none_and_zero}}
</td>
<td class="disk_io">
{{task.disk_io|format_none_and_zero}}
</td>
<td class="task_log">
{{task.logfile}}
</td>
</tr>
{% endfor %}
{% endif %}
{% include "basetable_bottom.html" %}
</div>
{% endblock %}