Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id 8765C76FD7 for ; Wed, 7 Oct 2015 13:23:00 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 07 Oct 2015 06:23:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,649,1437462000"; d="scan'208";a="821306408" Received: from linux.intel.com ([10.23.219.25]) by orsmga002.jf.intel.com with ESMTP; 07 Oct 2015 06:23:00 -0700 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id 2B72F6A4083; Wed, 7 Oct 2015 06:22:01 -0700 (PDT) From: Ed Bartosh To: bitbake-devel@lists.openembedded.org Date: Wed, 7 Oct 2015 16:20:53 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [PATCH 08/10] toaster: Clean up template code 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: Wed, 07 Oct 2015 13:23:00 -0000 From: Elliot Smith Some errors in the HTML template didn't show up until they were rendering command line builds. One useless conditional was lingering in another template. Clean up these issues to display the latest builds section correctly. Signed-off-by: Elliot Smith Signed-off-by: Ed Bartosh --- lib/toaster/toastergui/templates/builds.html | 5 ----- lib/toaster/toastergui/templates/mrb_section.html | 21 ++++++++++----------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/lib/toaster/toastergui/templates/builds.html b/lib/toaster/toastergui/templates/builds.html index 566c279..459fcb0 100644 --- a/lib/toaster/toastergui/templates/builds.html +++ b/lib/toaster/toastergui/templates/builds.html @@ -29,8 +29,6 @@ {% include "mrb_section.html" %} - - {% if 1 %} - - {% else %} {% include "basetable_top.html" %} @@ -117,7 +113,6 @@ {% include "basetable_bottom.html" %} {% endif %} {# objects.paginator.count #} -{% endif %} {# empty #} {% endblock %} diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index 55687a1..bd8f991 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/lib/toaster/toastergui/templates/mrb_section.html @@ -22,19 +22,18 @@ {% endif %}
{% for build in mru %} -
- - - {{build.project.name}} - - - {% endif %} +
+ {% if mrb_type != 'project' %} + + + {{build.project.name}} + + + {% endif %}
-
+
{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} - + {% endif %} {% if build.target_set.all.count > 0 %}