diff options
| author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-02-13 13:08:26 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 14:38:32 +0000 |
| commit | 88f431cddfc80408a7fce3609ea5a1aa97cf0af4 (patch) | |
| tree | 7ee683d7d2eadfa635bac705bf7eed8fc894c2ed /bitbake/lib/toaster/toastergui/templates/project.html | |
| parent | 208f40dc0542e39b5664ffd957213020e05220b2 (diff) | |
| download | poky-88f431cddfc80408a7fce3609ea5a1aa97cf0af4.tar.gz | |
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/project.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/project.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html index 2c9cd8153c..7da2361460 100644 --- a/bitbake/lib/toaster/toastergui/templates/project.html +++ b/bitbake/lib/toaster/toastergui/templates/project.html | |||
| @@ -16,6 +16,19 @@ vim: expandtab tabstop=2 | |||
| 16 | <script src="{% static "js/ui-bootstrap-tpls-0.11.0.js" %}"></script> | 16 | <script src="{% static "js/ui-bootstrap-tpls-0.11.0.js" %}"></script> |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | {% if lvs_nos == 0 %} | ||
| 20 | <div class="alert alert-info"> | ||
| 21 | <p> | ||
| 22 | Toaster has no layer information; without layer information, you cannot run builds.<br/> To generate layer information you can: | ||
| 23 | </p> | ||
| 24 | <ul> | ||
| 25 | <li> <a href="https://wiki.yoctoproject.org/wiki/Setting_up_a_hosted_managed_mode_for_Toaster#LayerSources">Configure a layer source</a> | ||
| 26 | </li> | ||
| 27 | <li> <a href="{% url 'importlayer' %}">Import a layer</a> | ||
| 28 | </ul> | ||
| 29 | </div> | ||
| 30 | |||
| 31 | {%else%} | ||
| 19 | <div id="main" role="main" ng-app="project" ng-controller="prjCtrl" class="top-padded"> | 32 | <div id="main" role="main" ng-app="project" ng-controller="prjCtrl" class="top-padded"> |
| 20 | 33 | ||
| 21 | 34 | ||
| @@ -440,4 +453,5 @@ angular.element(document).ready(function() { | |||
| 440 | }); | 453 | }); |
| 441 | </script> | 454 | </script> |
| 442 | 455 | ||
| 456 | {% endif %} {# from lvs_nos check #} | ||
| 443 | {% endblock %} | 457 | {% endblock %} |
