Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 92F6EE00CE1; Tue, 24 May 2016 04:53:03 -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 * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9EE5FE00C45 for ; Tue, 24 May 2016 04:52:31 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 24 May 2016 04:52:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208,217";a="961193967" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:52:30 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:38:39 +0100 Message-Id: <1464090003-23469-23-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> References: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> Subject: [PATCH 022/106] toaster: remove row from base template 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: Tue, 24 May 2016 11:53:03 -0000 A row in the base template caused duplicated row divs and issues with the most complex layouts we use in the details pages. Remove the row from the base template and set the rows in each template as needed instead. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/templates/base.html | 6 +- .../toastergui/templates/baseprojectpage.html | 64 +++++++++++----------- .../toastergui/templates/builds-toastertable.html | 2 + .../toaster/toastergui/templates/importlayer.html | 2 + .../toastergui/templates/newcustomimage.html | 15 +++-- .../templates/projectbuilds-toastertable.html | 2 + .../templates/projects-toastertable.html | 58 ++++++++++---------- 7 files changed, 81 insertions(+), 68 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 62f3699..0c305a2 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -120,10 +120,8 @@
-
- {% block pagecontent %} - {% endblock %} -
+ {% block pagecontent %} + {% endblock %}
diff --git a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html index 0d12a36..483a485 100644 --- a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +++ b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html @@ -7,37 +7,39 @@ {% block pagecontent %} -{% include "projecttopbar.html" %} - - - -
- -
-
- {% block projectinfomain %}{% endblock %} -
+
+ {% include "projecttopbar.html" %} + + + +
+ +
+
+ {% block projectinfomain %}{% endblock %} +
+
{% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html index 9b4f3fe..0afe0a3 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html +++ b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html @@ -13,6 +13,7 @@ {% block pagecontent %} +
{% with mru=mru mrb_type=mrb_type %} {% include 'mrb_section.html' %} @@ -25,6 +26,7 @@ {% url 'builds' as xhr_table_url %} {% include 'toastertable.html' %}
+
+ {% endblock %} diff --git a/bitbake/lib/toaster/toastergui/templates/projects-toastertable.html b/bitbake/lib/toaster/toastergui/templates/projects-toastertable.html index cfbe3ae..d8020a9 100644 --- a/bitbake/lib/toaster/toastergui/templates/projects-toastertable.html +++ b/bitbake/lib/toaster/toastergui/templates/projects-toastertable.html @@ -4,37 +4,39 @@ {% block pagecontent %} -
- - - - {% url 'projects' as xhr_table_url %} - {% include 'toastertable.html' %} - - + +
{% endblock %} -- 1.9.1