diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-10-17 10:45:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-27 07:24:31 +0000 |
commit | 1ec2ec34299cd8c0093f6e1a8f2fbf1a1d63741f (patch) | |
tree | 9d898a0926da6a42a7a2ae4aed48f36639c2b55a | |
parent | bbac0f092a20ab76be510d403fb946ea90f6597e (diff) | |
download | poky-1ec2ec34299cd8c0093f6e1a8f2fbf1a1d63741f.tar.gz |
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 <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/landing.html | 103 |
1 files changed, 58 insertions, 45 deletions
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 @@ | |||
6 | 6 | ||
7 | {% block pagecontent %} | 7 | {% block pagecontent %} |
8 | 8 | ||
9 | <div class="container-fluid"> | 9 | {% if BUILD_MODE %} |
10 | <div class="row-fluid"> | 10 | <!-- build mode --> |
11 | <!-- Empty - no data in database --> | 11 | <div class="container-fluid"> |
12 | <div class="hero-unit span12 well-transparent"> | 12 | <div class="row-fluid"> |
13 | <div class="row-fluid"> | 13 | <div class="hero-unit span12 well-transparent"> |
14 | <div class="span6"> | 14 | <div class="row-fluid"> |
15 | <h1> | ||
16 | This is Toaster | ||
17 | </h1> | ||
18 | <p>A web interface to <a href="http://www.openembedded.org">OpenEmbedded</a> and <a href="http://www.yoctoproject.org/tools-resources/projects/bitbake">BitBake</a>, the <a href="http://www.yoctoproject.org">Yocto Project</a> build system.</p> | ||
19 | |||
20 | |||
21 | {% if lvs_nos %} | ||
22 | <p class="hero-actions"> | ||
23 | <a class="btn btn-primary btn-large" href="{% url 'newproject' %}"> | ||
24 | To start building, create your first Toaster project | ||
25 | </a> | ||
26 | </p> | ||
27 | {% else %} | ||
28 | <div class="alert alert-info lead air"> | ||
29 | Toaster has no layer information. Without layer information, you cannot run builds. To generate layer information you can: | ||
30 | <ul> | ||
31 | <li> | ||
32 | <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a> | ||
33 | </li> | ||
34 | <li> | ||
35 | <a href="{% url 'newproject' %}">Create a project</a>, then import layers | ||
36 | </li> | ||
37 | </ul> | ||
38 | </div> | ||
39 | {% endif %} | ||
40 | |||
41 | <ul class="unstyled"> | ||
42 | <li> | ||
43 | <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html">Read the Toaster manual</a> | ||
44 | </li> | ||
45 | <li> | ||
46 | <a href="https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster">Contribute to Toaster</a> | ||
47 | </li> | ||
48 | </ul> | ||
49 | 15 | ||
16 | <div class="span6"> | ||
17 | <h1>This is Toaster</h1> | ||
18 | |||
19 | <p>A web interface to <a href="http://www.openembedded.org">OpenEmbedded</a> and <a href="http://www.yoctoproject.org/tools-resources/projects/bitbake">BitBake</a>, the <a href="http://www.yoctoproject.org">Yocto Project</a> build system.</p> | ||
20 | |||
21 | {% if lvs_nos %} | ||
22 | <p class="hero-actions"> | ||
23 | <a class="btn btn-primary btn-large" href="{% url 'newproject' %}"> | ||
24 | To start building, create your first Toaster project | ||
25 | </a> | ||
26 | </p> | ||
27 | {% else %} | ||
28 | <div class="alert alert-info lead air"> | ||
29 | Toaster has no layer information. Without layer information, you cannot run builds. To generate layer information you can: | ||
30 | <ul> | ||
31 | <li> | ||
32 | <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a> | ||
33 | </li> | ||
34 | <li> | ||
35 | <a href="{% url 'newproject' %}">Create a project</a>, then import layers | ||
36 | </li> | ||
37 | </ul> | ||
38 | </div> | ||
39 | {% endif %} | ||
40 | |||
41 | <ul class="unstyled"> | ||
42 | <li> | ||
43 | <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html"> | ||
44 | Read the Toaster manual | ||
45 | </a> | ||
46 | </li> | ||
47 | |||
48 | <li> | ||
49 | <a href="https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster"> | ||
50 | Contribute to Toaster | ||
51 | </a> | ||
52 | </li> | ||
53 | </ul> | ||
54 | </div> | ||
55 | |||
56 | <div class="span6"> | ||
57 | <img alt="Yocto Project" class="thumbnail" src="{% static 'img/toaster_bw.png' %}"/> | ||
58 | </div> | ||
59 | |||
60 | </div> | ||
61 | </div> | ||
50 | </div> | 62 | </div> |
51 | <div class="span6"> | ||
52 | <img alt="Yocto Project" class="thumbnail" src="{% static 'img/toaster_bw.png' %}"/> | ||
53 | </div> | ||
54 | </div> | ||
55 | </div> | 63 | </div> |
56 | </div> | 64 | {% else %} |
65 | <!-- analysis mode --> | ||
66 | <div class="alert alert-info lead top-air"> | ||
67 | Toaster has not recorded any builds yet. Run a build from the command line to see it here. | ||
68 | </div> | ||
69 | {% endif %} | ||
57 | 70 | ||
58 | {% endblock %} | 71 | {% endblock %} |