From 1ec2ec34299cd8c0093f6e1a8f2fbf1a1d63741f Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Sat, 17 Oct 2015 10:45:49 -0700 Subject: bitbake: toaster: Show mode-appropriate landing page 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] (Bitbake rev: 86b4a10cc817abb5e3e63360dc8b3c550337f17c) Signed-off-by: Elliot Smith Signed-off-by: brian avery Signed-off-by: Richard Purdie --- .../lib/toaster/toastergui/templates/landing.html | 103 ++++++++++++--------- 1 file changed, 58 insertions(+), 45 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/landing.html b/bitbake/lib/toaster/toastergui/templates/landing.html index 45e95322d1..65d8c3c626 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 %} -- cgit v1.2.3-54-g00ecf