mirror of
https://git.yoctoproject.org/poky
synced 2026-05-12 14:28:14 +02:00
Toaster needs to properly prompt the user and display actionable help texts when the database is void of meaningful information. This patch brings in the "empty" states for pages. [YOCTO #6755] (Bitbake rev: 7cfe279bf77b59d5cbd20d8a93e1d33279bebc20) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
112 lines
3.0 KiB
HTML
112 lines
3.0 KiB
HTML
{% extends "base.html" %}
|
||
|
||
{% load static %}
|
||
{% load projecttags %}
|
||
{% load humanize %}
|
||
|
||
{% block pagecontent %}
|
||
|
||
<div class="container-fluid">
|
||
<div class="row-fluid">
|
||
<!-- Empty - no data in database -->
|
||
<div class="hero-unit span12" {%if MANAGED%}style="background-color: white"{%endif%}>
|
||
{% if not MANAGED %}
|
||
<button class="close" data-dismiss="alert" type="button">
|
||
×
|
||
</button>
|
||
{% endif %}
|
||
<div class="row-fluid">
|
||
<div class="span6">
|
||
<h1>
|
||
This is Toaster
|
||
</h1>
|
||
<p>
|
||
A web interface to
|
||
<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>
|
||
|
||
{% if MANAGED %}
|
||
|
||
{% if lvs_nos %}
|
||
<p class="hero-actions">
|
||
<a class="btn btn-primary btn-large" href="{% url 'newproject' %}">
|
||
To start building, create your first Toaster project
|
||
</a>
|
||
</p>
|
||
{% else %}
|
||
<div class="alert alert-info">
|
||
<p>
|
||
Toaster has no layer information; without layer information, you cannot run builds. To generate layer information you can:
|
||
</p>
|
||
<ul>
|
||
<li> <a href="https://wiki.yoctoproject.org/wiki/Setting_up_a_hosted_managed_mode_for_Toaster#LayerSources">Configure a layer source</a>
|
||
</li>
|
||
<li> <a href="{% url 'newproject' %}">Create a project</a>, then import layers
|
||
</ul>
|
||
</div>
|
||
{% endif %}
|
||
|
||
<p style="margin-top: 2em">
|
||
<a href="https://www.yoctoproject.org/documentation/toaster-manual">
|
||
Read the Toaster manual
|
||
</a> <br/>
|
||
<a href="https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster">
|
||
Contribute to Toaster
|
||
</a>
|
||
</p>
|
||
|
||
{% else %}
|
||
|
||
<p class="hero-actions">
|
||
<a class="btn btn-primary btn-large" href="https://www.yoctoproject.org/documentation/toaster-manual">
|
||
Show me the manual
|
||
</a>
|
||
<a class="btn btn-large" href="https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster">
|
||
I want to contribute
|
||
</a>
|
||
</p>
|
||
|
||
{% endif %}
|
||
</div>
|
||
<div class="span5">
|
||
<a href="http://www.yoctoproject.org">
|
||
{% if MANAGED %}
|
||
<img alt="Yocto Project" class="thumbnail" src="{% static 'img/toaster_1.7.png' %}"/>
|
||
{% else %}
|
||
<img alt="Yocto Project" class="thumbnail" src="{% static 'img/toaster.png' %}"/>
|
||
{% endif %}
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
{% if not MANAGED %}
|
||
<!-- Empty - no data in database -->
|
||
<div class="page-header top-air">
|
||
<h1>
|
||
All builds
|
||
</h1>
|
||
</div>
|
||
<div class="alert alert-info lead">
|
||
Toaster has not recorded any builds yet. Go build something with
|
||
<a href="http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html#test-run">
|
||
Knotty
|
||
</a>
|
||
or
|
||
<a href="https://www.yoctoproject.org/documentation/hob-manual">
|
||
Hob
|
||
</a>
|
||
</div>
|
||
{% endif %}
|
||
|
||
</div>
|
||
|
||
{% endblock %}
|