Return-Path: Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171]) by mail.openembedded.org (Postfix) with ESMTP id 7350E6011C for ; Mon, 4 Jul 2016 11:52:59 +0000 (UTC) Received: by mail-pf0-f171.google.com with SMTP id i123so61105646pfg.0 for ; Mon, 04 Jul 2016 04:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=5FD6iA/xThJckjpDj0gy9y/nYZXxxAqyXZvHr00/kYo=; b=vm2p8gnb8xY6TESquOLKnlYmhGrRNwhLHUWpaaArN7VdrzynN+XLY1WU2jjKnuxrd0 yje4mdNsRH+CwfMJCuPjcmFq8mom0Qup2GHx7lsCrTt7k11fuEL1BZ3t5+D/8OTYwiAY qtrcNKAjQACIgjErXNrJ0DhuFYKH3gVJc630+SK815sAzyc5dLtN74QJx7t/Fl0bN2nz Mz7QErW05NGaGu3+5FT8mSIrEIqsmFzKnuPPXqMgKcectKCGxhYfWmMiV/uhWkkZbG1n aDqpCKCDpTm01d5PSdqUhENLdldbVouVea2opdjc8qH51iMy9Xw36hBks0K71MoPsCR1 WlzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5FD6iA/xThJckjpDj0gy9y/nYZXxxAqyXZvHr00/kYo=; b=Ha1FmpugSJkuftKLT7zwxEzy9CTVC+MkajbIFTt97+CXK9PiK545/MIsTD52PpNGzm YMR8vQtrYDoGS9zhQLITmMVziXRo9pM9lrRoUuydokBsodFU+fcJdft5sTxjRUNediE0 57DSB2aKKExv1JWjASD9+yfgy6zxaydt5PKVJNzR7rjN6bcrsez9lyYADnjGNdCOu9jG hWA9LtK/NuDhH9O4Q+04HkSe3xZH+TXYStRa7YH5tGi7DtnfeIO+LTPargTziGl7Kakb wgBJkE4ZfxfxzVNUZ1s45eFHLbs/mv2BdcvouYjgwCOVvUtOz+yjIDxbE6q5eYZ1SY0k ln6A== X-Gm-Message-State: ALyK8tK4flR4IoSVJ0bbAO8Qp6y+rgA5/uSManBi+GUFRizSCyUr875E/w/AkVMZM6AUS4lH X-Received: by 10.98.0.83 with SMTP id 80mr22114572pfa.0.1467633179750; Mon, 04 Jul 2016 04:52:59 -0700 (PDT) Received: from orion.ger.corp.intel.com (fmdmzpr03-ext.fm.intel.com. [192.55.54.38]) by smtp.gmail.com with ESMTPSA id i3sm4596768pfk.30.2016.07.04.04.52.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Jul 2016 04:52:59 -0700 (PDT) From: Michael Wood To: bitbake-devel@lists.openembedded.org Date: Mon, 4 Jul 2016 12:52:53 +0100 Message-Id: <1467633173-11557-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: fix layout for command-line builds in recent builds area X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 11:52:59 -0000 From: Elliot Smith 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 Signed-off-by: Michael Wood --- lib/toaster/toastergui/templates/mrb_section.html | 247 +++++++++++----------- 1 file changed, 123 insertions(+), 124 deletions(-) diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index 4b4e3e6..b164269 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/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