diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-02-20 14:32:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-17 13:59:37 +0000 |
commit | f4755edc8686cde97701b6e496149048be528739 (patch) | |
tree | b9180a9fa217fca47e8979a8647ba293b75c66a2 /bitbake/lib/toaster/toastergui/templates/tasks.html | |
parent | 92c98c4af7d0b3901f2e0f43167477b8b97d6ebe (diff) | |
download | poky-f4755edc8686cde97701b6e496149048be528739.tar.gz |
bitbake: toaster: Add no search results page
Adding the no search results page to the built packages
(bpackage.html), variables (configvars.html), recipes
(recipes.html) and tasks (tasks.html) tables.
The change copies the code from the build.html template
into the other 4 templates. There is probably a smarter way
of doing this, though.
(Bitbake rev: 3feff77091b3926c10ca8f30890c9049633ccb66)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/tasks.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/tasks.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index ce75b75c94..f484867958 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html | |||
@@ -17,6 +17,20 @@ | |||
17 | {%endif%} | 17 | {%endif%} |
18 | </h1> | 18 | </h1> |
19 | </div> | 19 | </div> |
20 | |||
21 | {% if objects.paginator.count == 0 %} | ||
22 | <div class="row-fluid"> | ||
23 | <div class="alert"> | ||
24 | <form class="no-results input-append" id="searchform"> | ||
25 | <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/><a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a> | ||
26 | <button class="btn" type="submit" value="Search">Search</button> | ||
27 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all tasks</button> | ||
28 | </form> | ||
29 | </div> | ||
30 | </div> | ||
31 | |||
32 | |||
33 | {% else %} | ||
20 | {% include "basetable_top.html" %} | 34 | {% include "basetable_top.html" %} |
21 | 35 | ||
22 | {% for task in objects %} | 36 | {% for task in objects %} |
@@ -58,5 +72,6 @@ | |||
58 | {% endfor %} | 72 | {% endfor %} |
59 | 73 | ||
60 | {% include "basetable_bottom.html" %} | 74 | {% include "basetable_bottom.html" %} |
75 | {% endif %} | ||
61 | </div> | 76 | </div> |
62 | {% endblock %} | 77 | {% endblock %} |