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/managed_builds.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/managed_builds.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/managed_builds.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_builds.html b/bitbake/lib/toaster/toastergui/templates/managed_builds.html index 183be760ae..121ad07898 100644 --- a/bitbake/lib/toaster/toastergui/templates/managed_builds.html +++ b/bitbake/lib/toaster/toastergui/templates/managed_builds.html | |||
@@ -25,6 +25,7 @@ | |||
25 | 25 | ||
26 | {% if objects.paginator.count == 0 %} | 26 | {% if objects.paginator.count == 0 %} |
27 | <div class="row-fluid"> | 27 | <div class="row-fluid"> |
28 | {% if request.GET.filter or request.GET.search %} | ||
28 | <div class="alert"> | 29 | <div class="alert"> |
29 | <form class="no-results input-append" id="searchform"> | 30 | <form class="no-results input-append" id="searchform"> |
30 | <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} | 31 | <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} |
@@ -32,6 +33,11 @@ | |||
32 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button> | 33 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button> |
33 | </form> | 34 | </form> |
34 | </div> | 35 | </div> |
36 | {% else %} | ||
37 | <div class="alert alert-info"> | ||
38 | <p class="lead">Toaster has not recorded any builds yet. To run a build, <a href="{% url 'all-projects' %}">select the project</a> for which you want to build. | ||
39 | </div> | ||
40 | {% endif %} | ||
35 | </div> | 41 | </div> |
36 | 42 | ||
37 | 43 | ||