diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-22 10:34:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 22:44:53 +0100 |
commit | f6a70adcfb53f3fa73af70c7198335e0f46b0175 (patch) | |
tree | ff16ea5811f102667a11b3977a702de8028d0c3a /bitbake | |
parent | 08000eb27eb8413686fb2c8daf14d234a8bff83a (diff) | |
download | poky-f6a70adcfb53f3fa73af70c7198335e0f46b0175.tar.gz |
bitbake: toaster: change UI to show tasks
Changed toaster UI to show tasks if they're specified for the
builds and use them when restarting builds.
[YOCTO #7442]
(Bitbake rev: 3c196c15f0ae4c6ac2b92e0a75562962f3da0089)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
3 files changed, 40 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builds.html b/bitbake/lib/toaster/toastergui/templates/builds.html index c0d0c64c20..2b35b010ed 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds.html +++ b/bitbake/lib/toaster/toastergui/templates/builds.html | |||
@@ -66,7 +66,17 @@ | |||
66 | <td class="outcome"> | 66 | <td class="outcome"> |
67 | <a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a> | 67 | <a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a> |
68 | </td> | 68 | </td> |
69 | <td class="target">{% for t in build.target_set.all %} <a href="{% url "builddashboard" build.id %}"> {{t.target}} </a> <br />{% endfor %}</td> | 69 | <td class="target"> |
70 | {% for t in build.target_set.all %} | ||
71 | <a href="{% url "builddashboard" build.id %}"> | ||
72 | {% if t.task %} | ||
73 | {{t.target}}:{{t.task}} | ||
74 | {% else %} | ||
75 | {{t.target}} | ||
76 | {% endif %} | ||
77 | </a> <br /> | ||
78 | {% endfor %} | ||
79 | </td> | ||
70 | <td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td> | 80 | <td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td> |
71 | <td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td> | 81 | <td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td> |
72 | <td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td> | 82 | <td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td> |
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 396fb8edf8..13e2d0e452 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html | |||
@@ -26,12 +26,25 @@ | |||
26 | {% endif %} | 26 | {% endif %} |
27 | {% if build.target_set.all.count > 0 %} | 27 | {% if build.target_set.all.count > 0 %} |
28 | <span data-toggle="tooltip" | 28 | <span data-toggle="tooltip" |
29 | {%if build.target_set.all.count > 1%} | 29 | {% if build.target_set.all.count > 1 %} |
30 | title="Targets: {%for target in build.target_set.all%}{{target.target}} {%endfor%}" | 30 | title="Targets: |
31 | {%endif%} | 31 | {% for target in build.target_set.all %} |
32 | {% if target.task %} | ||
33 | {{target.target}}:{{target.task}} | ||
34 | {% else %} | ||
35 | {{target.target}} | ||
36 | {% endif %} | ||
37 | {% endfor %}" | ||
38 | {% endif %} | ||
32 | > | 39 | > |
33 | 40 | {% if build.target_set.all.0.task %} | |
34 | {{build.target_set.all.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} | 41 | {{build.target_set.all.0.target}}:{{build.target_set.all.0.task}} |
42 | {% else %} | ||
43 | {{build.target_set.all.0.target}} | ||
44 | {% endif %} | ||
45 | {% if build.target_set.all.count > 1 %} | ||
46 | (+ {{build.target_set.all.count|add:"-1"}}) | ||
47 | {% endif %} | ||
35 | </span> | 48 | </span> |
36 | {% endif %} | 49 | {% endif %} |
37 | {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} | 50 | {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} |
diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html index 27cfcd7dce..fc659a02bb 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html | |||
@@ -66,7 +66,17 @@ | |||
66 | {% endif %} | 66 | {% endif %} |
67 | </td> | 67 | </td> |
68 | 68 | ||
69 | <td class="target">{% for t in build.target_set.all %} <a href="{% url "builddashboard" build.id %}"> {{t.target}} </a> <br />{% endfor %}</td> | 69 | <td class="target"> |
70 | {% for t in build.target_set.all %} | ||
71 | <a href="{% url "builddashboard" build.id %}"> | ||
72 | {% if t.task %} | ||
73 | {{t.target}}:{{t.task}} | ||
74 | {% else %} | ||
75 | {{t.target}} | ||
76 | {% endif %} | ||
77 | </a> <br /> | ||
78 | {% endfor %} | ||
79 | </td> | ||
70 | <td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td> | 80 | <td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td> |
71 | <td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td> | 81 | <td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td> |
72 | <td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td> | 82 | <td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td> |