Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 79238E00E6E; Thu, 30 Jun 2016 03:38:31 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 20C84E00D53 for ; Thu, 30 Jun 2016 03:38:26 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 30 Jun 2016 03:38:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,551,1459839600"; d="scan'208,217";a="1012682618" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga002.fm.intel.com with ESMTP; 30 Jun 2016 03:38:26 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.97]) by IRSMSX106.ger.corp.intel.com ([169.254.8.145]) with mapi id 14.03.0248.002; Thu, 30 Jun 2016 11:38:19 +0100 From: "Barros Pena, Belen" To: "Smith, Elliot" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] toaster: fix layout for command-line builds in recent builds area Thread-Index: AQHR0ruDdOYPENoRxkqGqSFeV9J8VQ== Date: Thu, 30 Jun 2016 10:38:18 +0000 Message-ID: References: <1467280579-9954-1-git-send-email-elliot.smith@intel.com> In-Reply-To: <1467280579-9954-1-git-send-email-elliot.smith@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.5.160527 x-originating-ip: [10.252.18.80] MIME-Version: 1.0 Subject: Re: [PATCH] toaster: fix layout for command-line builds in recent builds area X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2016 10:38:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <39EC0C800D1DFB45B5E4E731091E9143@intel.com> Content-Transfer-Encoding: quoted-printable On 30/06/2016 10:56, "toaster-bounces@yoctoproject.org on behalf of Elliot Smith" wrote: >Command-line builds were displayed incorrectly, so that the >HTML elements for other builds were being "consumed" by the >command-line build elements due to incorrect positioning of >element end tags. > >Fix by ensuring end tags close elements in the right places. > >As the indentation was all over the place in the most recent >builds section template, it was almost impossible to see what the >problem was. So that was fixed, too. Thanks for this. It looks great. Cheers Bel=E9n > >[YOCTO #9842] > >Signed-off-by: Elliot Smith >--- > .../toaster/toastergui/templates/mrb_section.html | 247 >++++++++++----------- > 1 file changed, 123 insertions(+), 124 deletions(-) > >diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html >b/bitbake/lib/toaster/toastergui/templates/mrb_section.html >index 4b4e3e6..b164269 100644 >--- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html >+++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html >@@ -3,6 +3,7 @@ > {% load project_url_tag %} > {% load humanize %} > >+ > >=20 >-{%if mru %} >+{% if mru %} >=20 >- {%if mrb_type =3D=3D 'project' %} >-

>- Latest project builds >+ {% if mrb_type =3D=3D 'project' %} >+

>+ Latest project builds >=20 >- {% if project.is_default %} >- heading-help" title=3D"" data-original-title=3D"Builds in this project can= not >be started from Toaster: they are started from the command line"> >- {% endif %} >-

>+ {% if project.is_default %} >+ heading-help" data-original-title=3D"Builds in this project cannot be >started from Toaster: they are started from the command line"> >+ {% endif %} >+ > {% else %} >
>-

>- Latest builds >-

>+

Latest builds

>
> {% endif %} >+ >
>- {% for build in mru %} >-
build-result {%if build.outcome =3D=3D build.SUCCEEDED%}alert-success{%eli= f >build.outcome =3D=3D build.FAILED%}alert-danger{%else%}alert-info{%endif%}= "> >+ {% for build in mru %} >+
build-result {% if build.outcome =3D=3D build.SUCCEEDED %}alert-success{% >elif build.outcome =3D=3D build.FAILED %}alert-danger{% else %}alert-info{= % >endif %}"> > {% if mrb_type !=3D 'project' %} >-
>- > {% endif %} >+ >
>
>- {%if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D=3D >build.FAILED %} >- class=3D"alert-link"> >- {% endif %} >+ {% if build.outcome =3D=3D build.SUCCEEDED or build.outcome = =3D=3D >build.FAILED %} >+ class=3D"alert-link"> >+ {% endif %} >+ > {% if build.target_set.all.count > 0 %} >- - {% if build.target_set.all.count > 1 %} >- {{build.get_sorted_target_list.0.target}} >- title=3D"Recipes: >- {% for target in build.get_sorted_target_list %} >- {% if target.task %} >- {{target.target}}:{{target.task}} >- {% else %} >- {{target.target}} >- {% endif %} >- {% endfor %}" >- {% endif %} >- > >+ + {% if build.target_set.all.count > 1 %} >+ {{build.get_sorted_target_list.0.target}} >+ title=3D"Recipes: >+ {% for target in build.get_sorted_target_list %} >+ {% if target.task %} >+ {{target.target}}:{{target.task}} >+ {% else %} >+ {{target.target}} >+ {% endif %} >+ {% endfor %}" >+ {% endif %} >+ > > {% if build.target_set.all.0.task %} >- =20 >{{build.get_sorted_target_list.0.target}}:{{build.target_set.all.0.task}} >+ =20 >{{build.get_sorted_target_list.0.target}}:{{build.target_set.all.0.task}} > {% else %} >- {{build.get_sorted_target_list.0.target}} >+ {{build.get_sorted_target_list.0.target}} > {% endif %} >+ > {% if build.target_set.all.count > 1 %} >- (+{{build.target_set.all.count|add:"-1"}}) >+ (+{{build.target_set.all.count|add:"-1"}}) > {% endif %} >- >- {% endif %} >- {%if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D=3D >build.FAILED %} >- >- {% endif %} >-
>- {% if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D=3D >build.FAILED %} >+ >+ {% endif %} >+ {% if build.outcome =3D=3D build.SUCCEEDED or build.outcome = =3D=3D >build.FAILED %} >+ >+ {% endif %} >+
>+ >+ {% if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D= =3D >build.FAILED %} >
>- {% if build.completed_on|format_build_date %} >- {{ build.completed_on|date:'d/m/y H:i' }} >- {% else %} >- {{ build.completed_on|date:'H:i' }} >- {% endif %} >+ {% if build.completed_on|format_build_date %} >+ {{build.completed_on|date:'d/m/y H:i'}} >+ {% else %} >+ {{ build.completed_on|date:'H:i' }} >+ {% endif %} >
>- {% endif %} >- {%if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D=3D >build.FAILED %} >+ {% endif %} >+ >+ {% if build.outcome =3D=3D build.SUCCEEDED or build.outcome =3D= =3D >build.FAILED %} > >+ > >+ >
> Build time: build.pk %}">{{ build.timespent_seconds|sectohms }} > >+ > {% if build.project.is_default %} >- glyphicon-question-sign get-help >- {% if build.outcome =3D=3D build.SUCCEEDED %} >- get-help-green >- {% elif build.outcome =3D=3D build.FAILED %} >- get-help-red >- {% else %} >- get-help-blue >- {% endif %} >- " title=3D"Builds in this project cannot be started fro= m >Toaster: they are started from the command line"> >- >+ glyphicon-question-sign get-help {% if build.outcome =3D=3D build.SUCCEEDE= D >%}get-help-green{% elif build.outcome =3D=3D build.FAILED %}get-help-red{% >else %}get-help-blue{% endif %}" >+ title=3D"Builds in this project cannot be started from >Toaster: they are started from the command line"> >+ > {% else %} >- - {% if build.outcome =3D=3D build.SUCCEEDED %} >- success >- {% elif build.outcome =3D=3D build.FAILED %} >- danger >- {% else %} >- info >- {%endif%} >- pull-right" >- data-request-url=3D"{% url 'xhr_buildrequest' >build.project.pk %}" >- =20 >data-target=3D'{{build.target_set.all|get_tasks|json}}'> >- >- Rebuild >- >+ build.outcome =3D=3D build.SUCCEEDED %}success{% elif build.outcome =3D=3D >build.FAILED %}danger{% else %}info{% endif %} pull-right" >+ data-request-url=3D"{% url 'xhr_buildrequest' >build.project.pk %}" >+ data-target=3D'{{build.target_set.all|get_tasks|json}}'> >+ >+ Rebuild >+ > {% endif %} >
>- {%endif%} >+ {% endif %} >=20 >- {%if build.outcome =3D=3D build.IN_PROGRESS %} >-
id=3D"cancelling-msg-{{build.buildrequest.pk}}"> >- Cancelling the build ... >-
>-
>-
>-
{{build.completeper}}%;" class=3D"progress-bar">
>-
>-
>-
id=3D"build-pc-done-{{build.pk}}">{{build.completeper}}% of tasks >complete >- {# No build cancel for command line builds project #} >- {% if build.project.is_default %} >- get-help-blue pull-right" title=3D"Builds in this project cannot be >cancelled from Toaster: they can only be cancelled from the command >line"> >- {% else %} >- - data-buildrequest-id=3D{{build.buildrequest.pk}} >- data-request-url=3D"{% url 'xhr_buildrequest' build.project.pk >%}" > >- >- Cancel >- >-
>- {% endif %} >+ {% if build.outcome =3D=3D build.IN_PROGRESS %} >+
id=3D"cancelling-msg-{{build.buildrequest.pk}}"> >+ Cancelling the build ... >+
>=20 >- {%endif%} {# end if in progress #} >+
>+
id=3D"build-pc-done-title-{{build.pk}}"> >+
{{build.completeper}}%;" class=3D"progress-bar"> >+
>+
>+
>=20 >- {% if build.outcome =3D=3D build.CANCELLED %} >-
>- Build cancelled >-
>- >- {% endif %} >-
>-
>- {% endfor %} >-
>+
>+ id=3D"build-pc-done-{{build.pk}}">{{build.completeper}}% of tasks >complete >+ {# No build cancel for command line builds project #} >+ {% if build.project.is_default %} >+ get-help-blue pull-right" title=3D"Builds in this project cannot be >cancelled from Toaster: they can only be cancelled from the command >line"> >+ {% else %} >+ alert-link" >+ data-buildrequest-id=3D{{build.buildrequest.pk}} >+ data-request-url=3D"{% url 'xhr_buildrequest' >build.project.pk %}"> >+ >+ Cancel >+ >+ {% endif %} >+
>+ {% endif %} {# end if in progress #} >=20 >-{%endif%} >+ {% if build.outcome =3D=3D build.CANCELLED %} >+
>+ Build cancelled >+
>=20 >+ >+ {% endif %} >+
>+ >+ {% endfor %} >+ >+{% endif %} >\ No newline at end of file >--=20 >2.7.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster