From: Elliot Smith Date: Sat, 17 Oct 2015 17:45:49 +0000 (-0700) Subject: toaster: Show mode-appropriate landing page X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86b4a10cc817abb5e3e63360dc8b3c550337f17c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Elliot Smith Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/templates/landing.html b/lib/toaster/toastergui/templates/landing.html index 45e95322d14..65d8c3c626a 100644 --- a/lib/toaster/toastergui/templates/landing.html +++ b/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 %}