summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html
blob: 9bb9bc17854f471130422118f9682d35a2a25c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends "baseprojectpage.html" %}

{% load static %}
{% load projecttags %}
{% load humanize %}

{% block localbreadcrumb %}
<li> {{buildrequest.get_sorted_target_list.0.target}} {%if buildrequest.brtarget_set.all.count > 1%}(+ {{buildrequest.brtarget_set.all.count|add:"-1"}}){%endif%} {{buildrequest.get_machine}} ({{buildrequest.updated|date:"d/m/y H:i"}}) </li>
{% endblock %}

{% block projectinfomain %}
      <!-- begin content -->

          <div class="row-fluid">

            <!-- end left sidebar container -->
            <!-- Begin right container -->
            <div class="span10">
              <div class="page-header">
                <h1>
 <span data-toggle="tooltip" {%if buildrequest.brtarget_set.all.count > 1%}title="Targets: {%for target in buildrequest.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{buildrequest.brtarget_set.all.0.target}} {%if buildrequest.brtarget_set.all.count > 1%}(+ {{buildrequest.brtarget_set.all.count|add:"-1"}}){%endif%} {{buildrequest.get_machine}} </span>

        </h1>
              </div>
              <div class="alert alert-error">
                <p class="lead">
                  <strong>Failed</strong>
                    on {{ buildrequest.updated|date:'d/m/y H:i' }}
            with

                                    <i class="icon-minus-sign error" style="margin-left:6px;"></i>
                  <strong><a class="error accordion-toggle toggle-errors" href="#errors">
                        {{buildrequest.brerror_set.all.count}} error{{buildrequest.brerror_set.all.count|pluralize}}
              </a></strong>
                  <span class="pull-right">Build time: {{buildrequest.get_duration|sectohms}}</span>
                </p>
              </div>

              <div class="accordion" id="errors">
                <div class="accordion-group">
                  <div class="accordion-heading">
                    <a class="accordion-toggle error toggle-errors">
                      <h2>
                        <i class="icon-minus-sign"></i>
                        {{buildrequest.brerror_set.all.count}} error{{buildrequest.brerror_set.all.count|pluralize}}
                      </h2>
                    </a>
                  </div>
                  <div class="accordion-body collapse in" id="collapse-errors">
                    <div class="accordion-inner">
                      <div class="span10">
               {% for error in buildrequest.brerror_set.all %}
                        <div class="alert alert-error">
                          ERROR: <div class="air well"><pre>{{error.errmsg}}</pre></div>
                        </div>
                      {% endfor %}
                      </div>
                    </div>
                  </div>

                </div>
              </div>
            </div>
          </div> <!-- end of row-fluid -->


{%endblock%}