bitbake: toaster: adjust build dashboard for failed builds
Remove the side bar and build details modules for failed builds. [YOCTO #8443] (Bitbake rev: 9d68a5bfdccd399791e1af048fefa73b5df90bcb) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e387a7ab9d
commit
2d80b902b8
|
@ -52,8 +52,9 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- begin left sidebar container for builds which started properly -->
|
||||
{% if build.started %}
|
||||
<div class="row">
|
||||
<!-- begin left sidebar container -->
|
||||
<div id="nav" class="col-md-2">
|
||||
<ul class="nav nav-pills nav-stacked" id="build-menu">
|
||||
<li
|
||||
|
@ -144,12 +145,13 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!-- end left sidebar container -->
|
||||
{% endif %}
|
||||
|
||||
<!-- begin right container -->
|
||||
<!-- right container; need class="row" for builds without left-hand menu -->
|
||||
<div{% if not build.started %} class="row"{% endif %}>
|
||||
{% block buildinfomain %}{% endblock %}
|
||||
<!-- end right container -->
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
{% block buildinfomain %}
|
||||
<!-- page title -->
|
||||
<div class="col-md-10">
|
||||
<div class="{% if build.started %}col-md-10{% else %}col-md-12{% endif %}">
|
||||
<div class="page-header build-data">
|
||||
<h1>{{build.get_sorted_target_list|field_values:"target"|join:", "}} {{build.machine}}</h1>
|
||||
</div>
|
||||
|
@ -62,9 +62,9 @@
|
|||
</div>
|
||||
<div class="panel-collapse collapse in" id="error-info">
|
||||
<div class="panel-body">
|
||||
<div class="col-md-10">
|
||||
<div class="{% if build.started %}col-md-10{% else %}col-md-12{% endif %}">
|
||||
{% for error in build.errors %}
|
||||
<div class="alert alert-danger" data-error="{{ error.id }}">
|
||||
<div class="alert alert-danger" data-log-message-id="{{error.pk}}">
|
||||
<pre>{{error.message}}</pre>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
@ -201,8 +201,10 @@
|
|||
</div>
|
||||
|
||||
{% endif %}
|
||||
<!-- build summary -->
|
||||
<h2>Build summary</h2>
|
||||
|
||||
{% if build.started %}
|
||||
<!-- build summary -->
|
||||
<h2 data-role="build-summary-heading">Build summary</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-4 dashboard-section">
|
||||
<div class="well well-transparent">
|
||||
|
@ -253,13 +255,13 @@
|
|||
<span class="glyphicon glyphicon-question-sign get-help" title="The percentage of 'not executed' tasks over the total number of tasks, which is a measure of the efficiency of your build"></span>
|
||||
</dt>
|
||||
<dd>
|
||||
{% query build.task_build order__gt=0 as texec %}
|
||||
{% if noexectask.count|multiply:100|divide:texec.count < 0 %}
|
||||
0
|
||||
{% else %}
|
||||
{{noexectask.count|multiply:100|divide:texec.count}}
|
||||
{% endif %}
|
||||
%
|
||||
{% query build.task_build order__gt=0 as texec %}
|
||||
{% if noexectask.count|multiply:100|divide:texec.count < 0 %}
|
||||
0
|
||||
{% else %}
|
||||
{{noexectask.count|multiply:100|divide:texec.count}}
|
||||
{% endif %}
|
||||
%
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
@ -273,7 +275,8 @@
|
|||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %} <!-- end build summary -->
|
||||
|
||||
{% if build.warnings.count %}
|
||||
<div class="panel panel-default" id="warnings">
|
||||
|
@ -285,9 +288,9 @@
|
|||
</div>
|
||||
<div class="panel-collapse collapse" id="warning-info">
|
||||
<div class="panel-body">
|
||||
<div class="col-md-10">
|
||||
<div class="{% if build.started %}col-md-10{% else %}col-md-12{% endif %}">
|
||||
{% for warning in logmessages %}{% if warning.level == 1 %}
|
||||
<div class="alert alert-warning">
|
||||
<div class="alert alert-warning" data-log-message-id="{{warning.pk}}">
|
||||
<pre>{{warning.message}}</pre>
|
||||
</div>
|
||||
{% endif %}{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue