mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake: toaster: Display task description
Display task description as content of help bubble for a task. [YOCTO #5748] (Bitbake rev: 4ffc380d11cff4e1d32d2bf5fb6c7cda6f7e22e6) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8f791ce59d
commit
85eb8dbd6d
@@ -174,6 +174,13 @@ class Task(models.Model):
|
|||||||
return "Executed"
|
return "Executed"
|
||||||
return "Not Executed"
|
return "Not Executed"
|
||||||
|
|
||||||
|
def get_description(self):
|
||||||
|
variable = Variable.objects.filter(variable_name=self.task_name, build = self.build)
|
||||||
|
try:
|
||||||
|
return variable[0].description
|
||||||
|
except IndexError:
|
||||||
|
return ''
|
||||||
|
|
||||||
build = models.ForeignKey(Build, related_name='task_build')
|
build = models.ForeignKey(Build, related_name='task_build')
|
||||||
order = models.IntegerField(null=True)
|
order = models.IntegerField(null=True)
|
||||||
task_executed = models.BooleanField(default=False) # True means Executed, False means Not/Executed
|
task_executed = models.BooleanField(default=False) # True means Executed, False means Not/Executed
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
<td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.order}}</a></td>
|
<td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.order}}</a></td>
|
||||||
<td>
|
<td>
|
||||||
<a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.task_name}}</a>
|
<a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.task_name}}</a>
|
||||||
<i class="icon-question-sign get-help hover-help" title="This task fetches the source code"></i>
|
{% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="" data-original-title="{{task.get_description}}"></i> {% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_executed_display}}</a></td>
|
<td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_executed_display}}</a></td>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
<a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.version}}</a>
|
<a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.version}}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="task_name">
|
<td class="task_name">
|
||||||
<a href="{%url "task" build.pk task.pk%} ">{{task.task_name}}</a>
|
<a href="{%url "task" build.pk task.pk%} ">{{task.task_name}}</a> {% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="" data-original-title="{{task.get_description}}"></i> {% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="executed">
|
<td class="executed">
|
||||||
<a href="{%url "task" build.pk task.pk%} ">{{task.get_executed_display}}</a>
|
<a href="{%url "task" build.pk task.pk%} ">{{task.get_executed_display}}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user