mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 12:49:34 +02:00
bitbake: toasterui: empty state for pages
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>
This commit is contained in:
committed by
Richard Purdie
parent
208f40dc05
commit
88f431cddf
@@ -16,6 +16,19 @@ vim: expandtab tabstop=2
|
||||
<script src="{% static "js/ui-bootstrap-tpls-0.11.0.js" %}"></script>
|
||||
|
||||
|
||||
{% if lvs_nos == 0 %}
|
||||
<div class="alert alert-info">
|
||||
<p>
|
||||
Toaster has no layer information; without layer information, you cannot run builds.<br/> 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 'importlayer' %}">Import a layer</a>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{%else%}
|
||||
<div id="main" role="main" ng-app="project" ng-controller="prjCtrl" class="top-padded">
|
||||
|
||||
|
||||
@@ -440,4 +453,5 @@ angular.element(document).ready(function() {
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endif %} {# from lvs_nos check #}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user