Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2898AE00BE2; Fri, 16 Oct 2015 07:33:15 -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.24 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6D216E00BF3 for ; Fri, 16 Oct 2015 07:33:10 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 16 Oct 2015 07:33:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,689,1437462000"; d="scan'208";a="582183072" Received: from bbryczek-mobl.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.3.107]) by FMSMGA003.fm.intel.com with ESMTP; 16 Oct 2015 07:33:09 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 16 Oct 2015 15:32:53 +0100 Message-Id: <1445005977-14892-3-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1445005977-14892-1-git-send-email-elliot.smith@intel.com> References: <1445005977-14892-1-git-send-email-elliot.smith@intel.com> Subject: [review-request][PATCH 2/6] toaster: Show mode-appropriate landing page 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: Fri, 16 Oct 2015 14:33:15 -0000 The same landing page is shown for both analysis and build modes. This means that users in analysis mode can see options which are not available or broken in that mode. Modify the landing page template to show a simple "run a build" message if the user is in analysis mode and has no builds yet. Also clean up the landing page HTML, because the indentation was a mess and the HTML was invalid. [YOCTO #8514] Signed-off-by: Elliot Smith --- .../lib/toaster/toastergui/templates/landing.html | 103 ++++++++++++--------- 1 file changed, 58 insertions(+), 45 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/landing.html b/bitbake/lib/toaster/toastergui/templates/landing.html index 45e9532..65d8c3c 100644 --- a/bitbake/lib/toaster/toastergui/templates/landing.html +++ b/bitbake/lib/toaster/toastergui/templates/landing.html @@ -6,53 +6,66 @@ {% block pagecontent %} -
-
- -
-
-
-

- This is Toaster -

-

A web interface to OpenEmbedded and BitBake, the Yocto Project build system.

- - - {% if lvs_nos %} -

- - To start building, create your first Toaster project - -

- {% else %} -
- Toaster has no layer information. Without layer information, you cannot run builds. To generate layer information you can: - -
- {% endif %} - - + {% if BUILD_MODE %} + +
+
+
+
+
+

This is Toaster

+ +

A web interface to OpenEmbedded and BitBake, the Yocto Project build system.

+ + {% if lvs_nos %} +

+ + To start building, create your first Toaster project + +

+ {% else %} +
+ Toaster has no layer information. Without layer information, you cannot run builds. To generate layer information you can: + +
+ {% endif %} + + +
+ +
+ Yocto Project +
+ +
+
-
- Yocto Project -
-
-
+ {% else %} + +
+ Toaster has not recorded any builds yet. Run a build from the command line to see it here. +
+ {% endif %} {% endblock %} -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.