mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 01:02:22 +01:00
Add this functionality to the common managed_mrb_section Make sure we are using the correct version of this template in the projects template and remove now redundant code. [YOCTO #7351] (Bitbake rev: 23f1439a5d3e8f4053826794c6502eca20189054) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
70 lines
3.1 KiB
HTML
70 lines
3.1 KiB
HTML
{% load static %}
|
|
{% load projecttags %}
|
|
{% load humanize %}
|
|
|
|
|
|
{%if mru.count > 0%}
|
|
|
|
<div class="page-header top-air">
|
|
<h1>
|
|
Latest builds
|
|
</h1>
|
|
</div>
|
|
<div id="latest-builds">
|
|
{% for build in mru %}
|
|
<div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%} {% if MANAGED and build.project %}project-name{% endif %} ">
|
|
{% if MANAGED and build.project %}
|
|
<span class="label {%if build.outcome == build.SUCCEEDED%}label-success{%elif build.outcome == build.FAILED%}label-danger{%else%}label-info{%endif%}"> {{build.project.name}} </span>
|
|
{% endif %}
|
|
|
|
<div class="row-fluid">
|
|
<div class="span3 lead">
|
|
{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
|
|
<a href="{%url 'builddashboard' build.pk%}" class="{%if build.outcome == build.SUCCEEDED %}success{%else%}error{%endif%}">
|
|
{% endif %}
|
|
<span data-toggle="tooltip" {%if build.target_set.all.count > 1%}title="Targets: {%for target in build.target_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{build.target_set.all.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%}
|
|
</span>
|
|
{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="span2 lead">
|
|
{% if build.completed_on|format_build_date %}
|
|
{{ build.completed_on|date:'d/m/y H:i' }}
|
|
{% else %}
|
|
{{ build.completed_on|date:'H:i' }}
|
|
{% endif %}
|
|
</div>
|
|
{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
|
|
<div class="span2 lead">
|
|
{% if build.errors_no %}
|
|
<i class="icon-minus-sign red"></i> <a href="{%url 'builddashboard' build.pk%}#errors" class="error">{{build.errors_no}} error{{build.errors_no|pluralize}}</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="span2 lead">
|
|
{% if build.warnings_no %}
|
|
<i class="icon-warning-sign yellow"></i> <a href="{%url 'builddashboard' build.pk%}#warnings" class="warning">{{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="lead ">
|
|
<span class="lead{%if not MANAGED or not build.project%} pull-right{%endif%}">
|
|
Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a>
|
|
</span>
|
|
</div>
|
|
{%endif%}
|
|
{%if build.outcome == build.IN_PROGRESS %}
|
|
<div class="span4">
|
|
<div class="progress" style="margin-top:5px;" data-toggle="tooltip" title="{{build.completeper}}% of tasks complete">
|
|
<div style="width: {{build.completeper}}%;" class="bar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="lead pull-right">ETA: in {{build.eta|naturaltime}}</div>
|
|
{%endif%}
|
|
</div>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
{%endif%}
|
|
|