Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 10407E00E6E; Thu, 30 Jun 2016 02:56:39 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [23.83.209.23 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from brown.birch.relay.mailchannels.net (brown.birch.relay.mailchannels.net [23.83.209.23]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9EBC0E00D53 for ; Thu, 30 Jun 2016 02:56:32 -0700 (PDT) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 00902649CA; Thu, 30 Jun 2016 09:56:28 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-123-105-117.us-west-2.compute.internal [10.123.105.117]) by relay.mailchannels.net (Postfix) with ESMTPA id 4DA8564FE8; Thu, 30 Jun 2016 09:56:28 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com (uscentral428.accountservergroup.com [10.91.5.35]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.6.15); Thu, 30 Jun 2016 09:56:28 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1467280588653:1677372850 X-MC-Ingress-Time: 1467280588653 Received: from [176.251.41.101] (port=49150 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bIYkQ-0000kz-TT; Thu, 30 Jun 2016 05:59:03 -0400 From: Elliot Smith To: toaster@yoctoproject.org Date: Thu, 30 Jun 2016 10:56:19 +0100 Message-Id: <1467280579-9954-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 2.7.4 X-AuthUser: elliot@townx.org Subject: [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 09:56:39 -0000 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. [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 %} + -{%if mru %} +{% if mru %} - {%if mrb_type == 'project' %} -

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

+ Latest project builds - {% if project.is_default %} - - {% endif %} -

+ {% if project.is_default %} + + {% endif %} + {% else %} {% endif %} +
- {% for build in mru %} -
+ {% for build in mru %} +
{% if mrb_type != 'project' %} -
- {% endif %} + + + {% if build.outcome == build.SUCCEEDED or build.outcome == 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 == build.SUCCEEDED or build.outcome == build.FAILED %} + {% endif %} + + {% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
- {% if build.errors.count %} + {% if build.errors.count %} - {{build.errors.count}} error{{build.errors.count|pluralize}} - {% endif %} + + {{build.errors.count}} error{{build.errors.count|pluralize}} + + {% endif %}
+
- {% if build.warnings.count %} + {% if build.warnings.count %} - {{build.warnings.count}} warning{{build.warnings.count|pluralize}} - {% endif %} + + {{build.warnings.count}} warning{{build.warnings.count|pluralize}} + + {% endif %}
+
Build time: {{ build.timespent_seconds|sectohms }} + {% if build.project.is_default %} - - + + {% else %} - - - Rebuild - + + + Rebuild + {% endif %}
- {%endif%} + {% endif %} - {%if build.outcome == build.IN_PROGRESS %} - -
-
-
-
-
-
{{build.completeper}}% of tasks complete - {# No build cancel for command line builds project #} - {% if build.project.is_default %} - - {% else %} - - - Cancel - -
- {% endif %} + {% if build.outcome == build.IN_PROGRESS %} + - {%endif%} {# end if in progress #} +
+
+
+
+
+
- {% if build.outcome == build.CANCELLED %} -
- Build cancelled -
- - {% endif %} -
-
- {% endfor %} -
+
+ {{build.completeper}}% of tasks complete + {# No build cancel for command line builds project #} + {% if build.project.is_default %} + + {% else %} + + + Cancel + + {% endif %} +
+ {% endif %} {# end if in progress #} -{%endif%} + {% if build.outcome == build.CANCELLED %} +
+ Build cancelled +
+ + {% endif %} +
+ + {% endfor %} + +{% endif %} \ No newline at end of file -- 2.7.4