diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-01-23 17:36:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 22:11:35 +0000 |
commit | 4f7182775cfa39c589e2e4693b1769127d7dd4d4 (patch) | |
tree | f62dfeba0e4a021fcbcb64c05e873b9da3458921 /bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html | |
parent | fefef50e5474da740f926ef635676c4d5f24b9b7 (diff) | |
download | poky-4f7182775cfa39c589e2e4693b1769127d7dd4d4.tar.gz |
bitbake: toastergui: update project build listing
We update the build listings in the project mode to enable
proper display and selection of build requests that do not have
an actual build object because the bitbake process did not start.
We add a page to display error details for build requests that
did not start a build.
Fixing errors and misspelling in build sections.
Sorting by "timespent" is disabled for build-listing pages.
[YOCTO #7165]
[YOCTO #7156]
[YOCTO #7196]
[YOCTO #7188]
(Bitbake rev: ee13bf45cecd6a0132d724b3206a6f4515669496)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html b/bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html new file mode 100644 index 0000000000..2a4571f42e --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html | |||
@@ -0,0 +1,67 @@ | |||
1 | {% extends "baseprojectpage.html" %} | ||
2 | |||
3 | {% load static %} | ||
4 | {% load projecttags %} | ||
5 | {% load humanize %} | ||
6 | |||
7 | {% block localbreadcrumb %} | ||
8 | <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> | ||
9 | {% endblock %} | ||
10 | |||
11 | {% block projectinfomain %} | ||
12 | <!-- begin content --> | ||
13 | |||
14 | <div class="row-fluid"> | ||
15 | |||
16 | <!-- end left sidebar container --> | ||
17 | <!-- Begin right container --> | ||
18 | <div class="span10"> | ||
19 | <div class="page-header"> | ||
20 | <h1> | ||
21 | <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> | ||
22 | |||
23 | </h1> | ||
24 | </div> | ||
25 | <div class="alert alert-error"> | ||
26 | <p class="lead"> | ||
27 | <strong>Failed</strong> | ||
28 | on {{ buildrequest.updated|date:'d/m/y H:i' }} | ||
29 | with | ||
30 | |||
31 | <i class="icon-minus-sign error" style="margin-left:6px;"></i> | ||
32 | <strong><a class="error accordion-toggle toggle-errors" href="#errors"> | ||
33 | {{buildrequest.brerror_set.all.count}} error{{buildrequest.brerror_set.all.count|pluralize}} | ||
34 | </a></strong> | ||
35 | <span class="pull-right">Build time: {{buildrequest.get_duration|sectohms}}</span> | ||
36 | </p> | ||
37 | </div> | ||
38 | |||
39 | <div class="accordion" id="errors" name="errors"> | ||
40 | <div class="accordion-group"> | ||
41 | <div class="accordion-heading"> | ||
42 | <a class="accordion-toggle error toggle-errors"> | ||
43 | <h2> | ||
44 | <i class="icon-minus-sign"></i> | ||
45 | {{buildrequest.brerror_set.all.count}} error{{buildrequest.brerror_set.all.count|pluralize}} | ||
46 | </h2> | ||
47 | </a> | ||
48 | </div> | ||
49 | <div class="accordion-body collapse in" id="collapse-errors"> | ||
50 | <div class="accordion-inner"> | ||
51 | <div class="span10"> | ||
52 | {% for error in buildrequest.brerror_set.all %} | ||
53 | <div class="alert alert-error"> | ||
54 | ERROR: <div class="air well"><pre>{{error.errmsg}}</pre></div> | ||
55 | </div> | ||
56 | {% endfor %} | ||
57 | </div> | ||
58 | </div> | ||
59 | </div> | ||
60 | |||
61 | </div> | ||
62 | </div> | ||
63 | </div> | ||
64 | </div> <!-- end of row-fluid --> | ||
65 | |||
66 | |||
67 | {%endblock%} | ||