mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: toastergui: implement UI changes to allow file download
This patchset adds download links in the build analisys pages if toaster runs in managed mode. This allows the user to access data directly from the web interface. [YOCTO #6837] (Bitbake rev: 6000e1ae5c846e51932ecd0dc21e0fa02eb10357) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
85a17f86ea
commit
aa9816ad79
@@ -24,17 +24,17 @@
|
||||
{# executed tasks outcome #}
|
||||
<dl class="dl-horizontal">
|
||||
{% if task.logfile %}
|
||||
{% if MANAGED and build.project %}
|
||||
<a class="btn btn-large" href="{% url 'build_artifact' build.id "tasklogfile" task.pk %}" style="margin:15px;">Download task log</a>
|
||||
{% else %}
|
||||
<dt>
|
||||
<i class="icon-question-sign get-help" title="Path the task log file"></i> Log file
|
||||
</dt>
|
||||
<dd>
|
||||
{% if MANAGED %}
|
||||
<code><a href="{% url 'build_artifact' build.pk 'tasklogfile' task.pk %}" target="_blanc">{{task.logfile}}</a></code>
|
||||
{% else %}
|
||||
<code>{{task.logfile}}</code>
|
||||
{% endif %}
|
||||
<code>{{task.logfile}}</code>
|
||||
</dd>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{# show stack trace for failed task #}
|
||||
{% if task.outcome == task.OUTCOME_FAILED and log_head %}
|
||||
<h3>Python stack trace</h3>
|
||||
@@ -191,6 +191,9 @@
|
||||
<strong>Failed</strong> to restore output from sstate cache. The file was found but could not be unpacked.
|
||||
</div>
|
||||
<dl class="dl-horizontal">
|
||||
{% if MANAGED and build.project %}
|
||||
<a href="{% url 'build_artifact' build.id "tasklogfile" task.pk %}" style="margin:15px;">Download log</a>
|
||||
{% else %}
|
||||
<dt>
|
||||
<i class="icon-question-sign get-help" title="Path to the cache attempt log file"></i>
|
||||
Log file
|
||||
@@ -201,6 +204,7 @@
|
||||
Time (secs)
|
||||
</dt>
|
||||
<dd>{{task.elapsed_time|format_none_and_zero}}</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
<div class="alert alert-info">
|
||||
Running the real task instead.
|
||||
@@ -268,8 +272,8 @@
|
||||
Time (secs)
|
||||
</dt>
|
||||
<dd>{{task.elapsed_time|format_none_and_zero|floatformat:2}}</dd>
|
||||
{% endif %}
|
||||
{% if task.cpu_usage > 0 %}
|
||||
{% endif %}
|
||||
{% if task.cpu_usage > 0 %}
|
||||
<dt>
|
||||
<i class="icon-question-sign get-help" title="The percentage of task CPU utilization"></i>
|
||||
CPU usage
|
||||
|
||||
Reference in New Issue
Block a user