From 6f176d4c7b4f789c0551fc4caa01beb2eb100364 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 18 Aug 2015 17:29:00 +0100 Subject: bitbake: toastergui: fix projectbuilds page This patch fixes the redirection projectbuilds page and the template layout in the projectbuilds page. * The _build_list_helper now returns an empty RedirectException that is properly customized by the caller and re-raised to achieve redirection to the original page (poor man's overloading) * The template for ProjectBuilds is updated as to properly display Build objects instead of BuildRequest objects. [YOCTO #7995] (Bitbake rev: 5982b5df9288a5773c7314234e2e0432f85678f2) Signed-off-by: Alexandru DAMIAN Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- .../toastergui/templates/projectbuilds.html | 42 +++------------------- 1 file changed, 4 insertions(+), 38 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html index 646755b183..f1db2f1504 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html @@ -16,8 +16,8 @@ @@ -28,7 +28,7 @@ {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %} No builds found {%else%} - All builds + Project builds {%endif%} @@ -58,7 +58,7 @@ {% include "basetable_top.html" %} - {% for br in objects %}{% if br.build %} {% with build=br.build %} {# if we have a build, just display it #} + {% for build in objects %} {# if we have a build, just display it #} {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%} {% if build.project %} @@ -96,40 +96,6 @@ {% endif %} - - {%endwith%} - {% else %} {# we don't have a build for this build request, mask the data with build request data #} - - - - - {% if br.state == br.REQ_FAILED %}{%else%}FIXME_build_request_state{%endif%} - - 1%}title="Targets: {%for target in br.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{br.brtarget_set.all.0.target}} {%if br.brtarget_set.all.count > 1%}(+ {{br.brtarget_set.all.count|add:"-1"}}){%endif%} - - - {{br.machine}} - - - {{br.created|date:"d/m/y H:i"}} - - - {{br.updated|date:"d/m/y H:i"}} - - - - - {{br.brerror_set.all.count}} error{{br.brerror_set.all.count|pluralize}} - - - - - {{br.timespent.total_seconds|sectohms}} - - {# we have no output here #} - - - {%endif%} {% endfor %} -- cgit v1.2.3-54-g00ecf