diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-12-13 17:14:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-10 15:20:26 +0000 |
commit | 5482409a370552809de75150350defef04ac7144 (patch) | |
tree | e0af09995517b66cc01be62508fef763907e051d /bitbake/lib/toaster/toastergui/templates/builddashboard.html | |
parent | 2251426ae420640c082ec0d0109b9be435075411 (diff) | |
download | poky-5482409a370552809de75150350defef04ac7144.tar.gz |
bitbake: toaster: Build dashboard implementation
This patch adds the build dashboard page implementation,
which is the landing page for the Toaster GUI.
Also adds correct links from the main build page
to the various parts of the dashboard.
[YOCTO #4258]
(Bitbake rev: bf7fbf5c0ee39564d813f82e194242f9d4f73c47)
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/builddashboard.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/builddashboard.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index 7c58cc0b25..3b184372bf 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html | |||
@@ -1,8 +1,74 @@ | |||
1 | {% extends "basebuildpage.html" %} | 1 | {% extends "basebuildpage.html" %} |
2 | {% load humanize %} | ||
3 | {% load projecttags %} | ||
2 | {% block localbreadcrumb %} | 4 | {% block localbreadcrumb %} |
3 | <li>Dashboard</li> | 5 | <li>Dashboard</li> |
4 | {% endblock %} | 6 | {% endblock %} |
5 | 7 | ||
6 | {% block buildinfomain %} | 8 | {% block buildinfomain %} |
9 | <!-- page title --> | ||
10 | <div class="row-fluid span10"> | ||
11 | <div class="page-header"> | ||
12 | <h1>{{build.target_set.all|join:" "}} {{build.machine}}</h1> | ||
13 | </div> | ||
14 | </div> | ||
15 | |||
16 | <!-- build result bar --> | ||
17 | <div class="row-fluid span10 pull-right"> | ||
18 | <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}"> | ||
19 | <div class="row-fluid lead"> | ||
20 | <span class="pull-left"><strong>{%if build.outcome == build.SUCCEEDED%}Completed{%elif build.outcome == build.FAILED%}Failed{%else%}{%endif%}</strong> {{build.completed_on|naturaltime}} with </span>{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}{% if build.errors_no %} | ||
21 | <span class="span2"><i class="icon-minus-sign red"></i><strong><a href="{%url 'builddashboard' build.pk%}" class="error"> {{build.errors_no}} error{{build.errors_no|pluralize}}</a></strong></span> | ||
22 | {% endif %} | ||
23 | {% if build.warnings_no %} | ||
24 | <span class="span2"><i class="icon-warning-sign yellow"></i><strong><a href="{%url 'builddashboard' build.pk%}" class="warning"> {{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a></strong></span> | ||
25 | {% endif %} | ||
26 | <span class="pull-right">Build time: <a href="build-time.html">{{ build|timespent }}</a></span> | ||
27 | {%endif%} | ||
28 | </div> | ||
29 | </div> | ||
30 | </div> | ||
31 | |||
32 | {%if build.outcome == build.SUCCEEDED%} | ||
33 | <!-- built images --> | ||
34 | <div class="row-fluid span10 pull-right"> | ||
35 | <h2>Images</h2> | ||
36 | |||
37 | <div class="well" style="background-color:transparent;"> | ||
38 | </div> | ||
39 | </div> | ||
40 | |||
41 | {%else%} | ||
42 | <!-- error dump --> | ||
43 | {%endif%} | ||
44 | |||
45 | <!-- build summary --> | ||
46 | <div class="row-fluid span10 pull-right"> | ||
47 | <h2>Build summary</h2> | ||
48 | <div class="well span4" style="margin-left:0px; background-color:transparent;"> | ||
49 | <h4><a href="{%url 'configuration' build.pk%}">Configuration</a></h4> | ||
50 | <dl> | ||
51 | <dt>Machine</dt><dd>{{build.machine}}</dd> | ||
52 | <dt>Distro</dt><dd></dd> | ||
53 | <dt>Layers</dt>{% for i in build.layer_version_build.all %}<dd>{{i.layer.name}}</dd>{%endfor%} | ||
54 | </dl> | ||
55 | </div> | ||
56 | <div class="well span4" style="background-color:transparent;"> | ||
57 | <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4> | ||
58 | <dl> | ||
59 | <dt>Total number of tasks</dt><dd>{{build.task_build.all.count}}</dd> | ||
60 | <dt>Tasks executed</dt><dd>{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}</dd> | ||
61 | <dt>Tasks prebuilt</dt><dd>{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</dd> | ||
62 | <dt>Reuse</dt><dd>{% query build.task_build order__gt=0 as texec %}{{noexectask.count|multiply:100|divide:texec.count}}%</dd> | ||
63 | </dl> | ||
64 | </div> | ||
65 | <div class="well span4" style="background-color:transparent;"> | ||
66 | <h4><a href="{% url 'recipes' build.pk %}">Recipes</a> & <a href="{% url 'packages' build.pk %}">Packages</a></h4> | ||
67 | <dl> | ||
68 | <dt>Recipes used</dt><dd>{{recipecount}}</dd> | ||
69 | <dt>Packages built</dt><dd>{{build.package_set.all.count}}</dd> | ||
70 | </dl> | ||
71 | </div> | ||
72 | </div> | ||
7 | 73 | ||
8 | {% endblock %} | 74 | {% endblock %} |